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
+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
}
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.
--- /dev/null
+! { 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