[Bug fortran/69064] [5/6 Regression] ICE: in gfc_typenode_for_spec, at fortran/trans-types.c:1062 when LEN is set to a variable with no explicit type

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 1 22:34:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064

--- Comment #48 from kargl at gcc dot gnu.org ---
Fairly trivial to fix once one finds

F2003, p. 126.

A variable in a specification expression shall have its type and
type parameters, if any, specified by a previous declaration in
the same scoping unit, by the implicit typing rules in effect for
the scoping unit, or by host or use association.

Note, the fix requires adjusting 2 testcases for new error
conditions and fixing 1 testcase that actually has invalid
code.


More information about the Gcc-bugs mailing list