[Bug fortran/40822] [4.5 Regression] Internal compiler error when Fortran intrinsic LEN referenced before explicit declaration

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Wed Jul 22 10:16:00 GMT 2009



------- Comment #1 from jv244 at cam dot ac dot uk  2009-07-22 10:15 -------
A 4.5 Regression with the following bt

Program received signal SIGSEGV, Segmentation fault.
0x000000000050f5a4 in resolve_symbol (sym=0x12dd060) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:7873
7873          e = sym->ts.cl->length;
(gdb) bt
#0  0x000000000050f5a4 in resolve_symbol (sym=0x12dd060) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:7873
#1  0x000000000051f677 in traverse_ns (st=0x1276850, func=0x50e1b0
<resolve_symbol>) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/symbol.c:3195
#2  0x000000000050b920 in resolve_types (ns=0x12dc680) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:10901
#3  0x0000000000507347 in gfc_resolve (ns=0x12dc680) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:10990
#4  0x000000000050ef06 in resolve_symbol (sym=0x12dbf50) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:9847
#5  0x000000000051f677 in traverse_ns (st=0x1282720, func=0x50e1b0
<resolve_symbol>) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/symbol.c:3195
#6  0x000000000050b920 in resolve_types (ns=0x12d8a10) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:10901
#7  0x0000000000507347 in gfc_resolve (ns=0x12d8a10) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/resolve.c:10990
#8  0x00000000004fb9ca in gfc_parse_file () at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:3924
#9  0x000000000052f62d in gfc_be_parse_file (set_yydebug=<value optimized out>)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/f95-lang.c:241
#10 0x00000000007fa0a3 in toplev_main (argc=13, argv=0x7ffff92ed248) at
/data03/vondele/gcc_trunk/gcc/gcc/toplev.c:1026
#11 0x00007fd3eff50436 in __libc_start_main () from /lib64/libc.so.6
#12 0x000000000049b2f9 in _start ()


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |32834
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.5.0
      Known to work|                            |4.3.2 4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-22 10:15:54
               date|                            |
            Summary|Internal compiler error when|[4.5 Regression] Internal
                   |Fortran intrinsic LEN       |compiler error when Fortran
                   |referenced before explicit  |intrinsic LEN referenced
                   |declaration                 |before explicit declaration


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



More information about the Gcc-bugs mailing list