[Bug fortran/83092] ICE in gfc_apply_init, at fortran/expr.c:4228
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Tue Nov 21 18:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83092
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-11-21
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.4 up to trunk (8.0) for the first three tests, although the
error changed from
f951: internal compiler error: in build_struct, at fortran/decl.c:(1605|1606)
for 4.5 up tp 4.9 (the line numbers being for 4.9) to
f951: internal compiler error: in gfc_apply_init, at fortran/expr.c:(4227|4228)
for 5 up to trunk (the line numbers being for 8.0).
The ICE for the last test looks like a regression: 4.9 and before gives an
error
pr83092_3.f90:4.22:
character :: c = t()
1
Error: No initializer for component 'a' given in the structure constructor at
(1)!
while 5 up to trunk gives an ICE. My instrumented gfortran gives
../../work/gcc/fortran/expr.c:4241:48: runtime error: load of value 52, which
is not a valid value for type 'bool'
for all the tests and
../../work/gcc/fortran/expr.c:4246:15: runtime error: member access within null
pointer of type 'struct gfc_expr'
for the last one.
More information about the Gcc-bugs
mailing list