------- Comment #1 from burnus at gcc dot gnu dot org  2007-07-09 21:57 -------
Works for me with 4.3.0; I can reproduce the ICE with 4.2 and 4.1.

valgrind with 4.3.0 shows:
==18422== Invalid read of size 8
==18422==    at 0x4A3FB2: build_dt (trans-io.c:1592)
==18422==    by 0x47819E: gfc_trans_code (trans.c:670)
==18422==    by 0x48CCFE: gfc_generate_function_code (trans-decl.c:3224)
==18422==    by 0x48CF84: gfc_generate_function_code (trans-decl.c:2838)
==18422==    by 0x44E0C3: gfc_parse_file (parse.c:3279)
==18422==    by 0x47279D: gfc_be_parse_file (f95-lang.c:301)
==18422==    by 0x6B3733: toplev_main (toplev.c:1051)
==18422==    by 0x52BEB43: (below main) (in /lib64/libc-2.6.so)
==18422==  Address 0x40E1F50 is 0 bytes inside a block of size 392 free'd
==18422==    at 0x4C2291B: free (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==18422==    by 0x44BBBA: gfc_fixup_sibling_symbols (parse.c:2774)
==18422==    by 0x44DAD4: parse_contained (parse.c:2858)
==18422==    by 0x44DDEC: parse_progunit (parse.c:2980)
==18422==    by 0x44E094: gfc_parse_file (parse.c:3217)
==18422==    by 0x47279D: gfc_be_parse_file (f95-lang.c:301)
==18422==    by 0x6B3733: toplev_main (toplev.c:1051)
==18422==    by 0x52BEB43: (below main) (in /lib64/libc-2.6.so)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-09 21:57:56
               date|                            |
   Target Milestone|---                         |4.3.0


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

Reply via email to