------- Comment #20 from burnus at gcc dot gnu dot org  2010-07-24 22:05 -------
(In reply to comment #19)
> $ gfortran -O2 -g  gfortran.dg/entry_array_specs_2.f && ./a.out 
> gfortran.dg/entry_array_specs_2.f:16:0: internal compiler error:
> in output_die, at dwarf2out.c:11046

I had a closer look at loc_1.f90. With this patch, the functions fn and foo are
actually cloned and inlined - without this does not happen. Consequently, the
ICE goes ways with -fno-inline. Thus, the patch might actually be correct and
the bug could be at a completely different place. Additionally, the patch might
give some performance boost :-)

But first, the cause for the ICE has to be found. Any idea where to start
searching?


-- 


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

Reply via email to