[Bug fortran/59060] Accepts invalid ? Missing component data value for component "D1" of TYPE("T2")
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 9 11:21:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59060
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
There is in Fortran 2003:
R457 structure-constructor is derived-type-spec ( [ component-spec-list ] )
C485 (R457) A component-spec shall be provided for a component unless it has
default initialization or is inheritance associated with another
component for which a component-spec is provided or that has
default initialization.
C488 (R457) The type name and all components of the type for which a
component-spec appears shall be accessible in the scoping unit
containing the structure constructor.
Thus, it looks like valid Fortran 2003 to me.
More information about the Gcc-bugs
mailing list