Commit 4b156631 by Daniel Kraft Committed by Daniel Kraft

[multiple changes]

2008-07-12  Daniel Kraft  <d@domob.eu>

	* resolve.c (resolve_fl_derived):  Allow pointer components to empty
	derived types fixing a missing part of PR fortran/33221.

2008-06-22  Daniel Kraft  <d@domob.eu>

	* gfortran.dg/used_types_21.f90:  New test.

From-SVN: r137737
parent d5740f02
2008-07-12 Daniel Kraft <d@domob.eu>
* resolve.c (resolve_fl_derived): Allow pointer components to empty
derived types fixing a missing part of PR fortran/33221.
2008-07-10 Daniel Kraft <d@domob.eu>
* gfc-internals.texi (section gfc_expr): Created documentation about
......
......@@ -7657,7 +7657,8 @@ resolve_fl_derived (gfc_symbol *sym)
}
if (c->ts.type == BT_DERIVED && c->pointer
&& c->ts.derived->components == NULL)
&& c->ts.derived->components == NULL
&& !c->ts.derived->attr.zero_comp)
{
gfc_error ("The pointer component '%s' of '%s' at %L is a type "
"that has not been declared", c->name, sym->name,
......
2008-06-22 Daniel Kraft <d@domob.eu>
* gfortran.dg/used_types_21.f90: New test.
2008-07-11 Ian Lance Taylor <iant@google.com>
* gcc.dg/Wcxx-compat-2.c: New test.
......
! { dg-do compile }
! Check that pointer components are allowed to empty types.
TYPE :: empty_t
END TYPE empty_t
TYPE :: comp_t
TYPE(empty_t), POINTER :: ptr
END TYPE comp_t
END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment