[Bug fortran/54730] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066

2012-09-28 Thread burnus at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54730



Tobias Burnus burnus at gcc dot gnu.org changed:



   What|Removed |Added



 CC||burnus at gcc dot gnu.org



--- Comment #3 from Tobias Burnus burnus at gcc dot gnu.org 2012-09-28 
10:07:41 UTC ---

That seems to be a regression: No ICE with 4.1 and 4.3, while there is an ICE

with 4.4/4.5/4.6/4.7/4.8 (interestingly, g95 also ICEs).


[Bug fortran/54730] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066

2012-09-27 Thread dominiq at lps dot ens.fr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54730



Dominique d'Humieres dominiq at lps dot ens.fr changed:



   What|Removed |Added



 Status|UNCONFIRMED |NEW

   Last reconfirmed||2012-09-27

 Ever Confirmed|0   |1



--- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr 2012-09-27 
21:21:14 UTC ---

I also see it with 4.4.6, 4.5.3, and 4.6.3. The backtrace is



#9  0x0001001368e8 in gfc_typenode_for_spec (spec=value optimized out) at

../../work/gcc/fortran/trans-types.c:1066

#10 0x000100136b89 in gfc_sym_type (sym=value optimized out) at

../../work/gcc/fortran/trans-types.c:2133

#11 0x0001000ead5c in gfc_get_symbol_decl (sym=value optimized out) at

../../work/gcc/fortran/trans-decl.c:1370

#12 0x0001000ee5c8 in generate_local_decl (sym=value optimized out) at

../../work/gcc/fortran/trans-decl.c:4571

#13 0x0001000ae3ac in do_traverse_symtree (st=value optimized out,

st_func=0, sym_func=0x1000ee2d0 generate_local_decl(gfc_symbol*))

at ../../work/gcc/fortran/symbol.c:3451

#14 0x0001000eea87 in gfc_generate_function_code (ns=value optimized out)

at ../../work/gcc/fortran/trans-decl.c:4727

#15 0x0001000c5852 in gfc_generate_module_code (ns=value optimized out)

at ../../work/gcc/fortran/trans.c:1640

#16 0x00010007fec7 in gfc_parse_file () at

../../work/gcc/fortran/parse.c:4454

#17 0x0001000c0386 in gfc_be_parse_file () at

../../work/gcc/fortran/f95-lang.c:191

#18 0x00010070dd7f in compile_file () at ../../work/gcc/toplev.c:546

#19 0x00010070fc2c in toplev_main (argc=value optimized out, argv=value

optimized out) at ../../work/gcc/toplev.c:1863

#20 0x0001a0b4 in start (pc=value optimized out, bases=0x0) at

../../../work/libgcc/unwind-dw2-fde.c:1055


[Bug fortran/54730] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066

2012-09-27 Thread dominiq at lps dot ens.fr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54730



--- Comment #2 from Dominique d'Humieres dominiq at lps dot ens.fr 2012-09-27 
21:43:23 UTC ---

The ICE occurs at



tree

gfc_typenode_for_spec (gfc_typespec * spec)

{

  tree basetype;



  switch (spec-type)

{

case BT_UNKNOWN:

  gcc_unreachable ();

...



and disappears if real(a = 1) is replaced with real(1).