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

--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
I ran the testcase under gdb to see where the error is thrown.

Starting program: /opt/gcc/4.9/lib/gcc/i686-pc-linux-gnu/4.9.0/f951
robin_gfortran_bug.f90 -quiet -dumpbase robin_gfortran_bug.f90 -mtune=generic
-march=pentiumpro -auxbase robin_gfortran_bug -o /tmp/ccIAIgJb.s

Breakpoint 2, assign_temp (type_or_decl=0xb7951f00, memory_required=0, 
    dont_promote=1) at ../../trunk/gcc/function.c:931
931       if (DECL_P (type_or_decl))
(gdb) bt
#0  assign_temp (type_or_decl=0xb7951f00, memory_required=0, dont_promote=1)
    at ../../trunk/gcc/function.c:931
#1  0x0832a884 in expand_return (retval=<optimized out>)
    at ../../trunk/gcc/cfgexpand.c:3110
#2  expand_gimple_stmt_1 (stmt=0xb78cf268) at ../../trunk/gcc/cfgexpand.c:3187
#3  expand_gimple_stmt (stmt=0xb78cf268) at ../../trunk/gcc/cfgexpand.c:3309
#4  0x0832c7bf in expand_gimple_basic_block (bb=0xb79577c0, 
    disable_tail_calls=false) at ../../trunk/gcc/cfgexpand.c:5149
#5  0x0833092e in gimple_expand_cfg () at ../../trunk/gcc/cfgexpand.c:5715
#6  (anonymous namespace)::pass_expand::execute (this=0x9190488)
    at ../../trunk/gcc/cfgexpand.c:5935
#7  0x085ffcf6 in execute_one_pass (pass=0x9190488)
    at ../../trunk/gcc/passes.c:2229
#8  0x08600026 in execute_pass_list (pass=0x9190488)
    at ../../trunk/gcc/passes.c:2282
#9  0x08356b8a in expand_function (node=0xb789198c)
    at ../../trunk/gcc/cgraphunit.c:1764
#10 0x08358ff5 in output_in_order () at ../../trunk/gcc/cgraphunit.c:1996
#11 compile () at ../../trunk/gcc/cgraphunit.c:2237
#12 0x08359575 in finalize_compilation_unit ()
    at ../../trunk/gcc/cgraphunit.c:2319
#13 0x0857056b in write_global_declarations ()
    at ../../trunk/gcc/langhooks.c:323
#14 0x086b29ad in compile_file () at ../../trunk/gcc/toplev.c:562
#15 0x086b490c in do_compile () at ../../trunk/gcc/toplev.c:1914
#16 toplev_main (argc=11, argv=0xbfffeb84) at ../../trunk/gcc/toplev.c:1990
#17 0x08195bfb in main (argc=11, argv=0xbfffeb84) at ../../trunk/gcc/main.c:36

It appears that the error is generated rather late.  Are there any
intermediate files it makes sense to look at, to see the effect of
slight variations of the input?  (E.g. where the "anonymous namespace"
comes from.)

Reply via email to