------- Comment #1 from burnus at gcc dot gnu dot org 2009-08-03 09:53 ------- Could not find the problem so far, cf. symbol.c's verify_bind_c_derived_type as starting point.
* * * The following TODO should be checked; I heard it is invalid C99 (as per grammar in 6.7.2.1 Structure and union specifiers) but valid C++. One should check it in the F2003 (F2008 draft?) as this the definite source. /* TODO: is this really an error? */ if (curr_comp == NULL) { gfc_error ("Derived type '%s' at %L is empty", derived_sym->name, &(derived_sym->declared_at)); return FAILURE; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40920