This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/44660] New: ICE in resolve_equivalence()


GCC trunk is ICEing in the fortran front-end while compiling this:

$ cat ./bug.f
  165        CONTINUE
      EQUIVALENCE (CHECK, CHECK_STR)
      DATA CHECK_STR/"CHECK   "/
      END

$ ./f951 bug.f
bug.f:2.72:

      EQUIVALENCE (CHECK, CHECK_STR)                                    
                                                                        1
Error: Unexpected EQUIVALENCE statement at (1)
bug.f:3.10:

      DATA CHECK_STR/"CHECK   "/                                        
          1
Error: Incompatible types in DATA statement at (1); attempted conversion of
CHARACTER(1) to REAL(4)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The ICE happens in:
(gdb) bt
#0  0x000000000053dcfe in resolve_equivalence (eq=0x17e6d60) at
../../gcc/fortran/resolve.c:12363
#1  0x000000000053ec22 in resolve_types (ns=0x1835640) at
../../gcc/fortran/resolve.c:12788
#2  0x000000000053ee9d in gfc_resolve (ns=0x1835640) at
../../gcc/fortran/resolve.c:12849
#3  0x000000000051dcff in gfc_parse_file () at ../../gcc/fortran/parse.c:4275
#4  0x000000000055e86f in gfc_be_parse_file (set_yydebug=0) at
../../gcc/fortran/f95-lang.c:234
#5  0x0000000000a1c7b0 in compile_file () at ../../gcc/toplev.c:1044
#6  0x0000000000a1ec33 in do_compile () at ../../gcc/toplev.c:2441
#7  0x0000000000a1ed09 in toplev_main (argc=5, argv=0x7fffffffe868) at
../../gcc/toplev.c:2483
#8  0x00000000005e69b0 in main (argc=5, argv=0x7fffffffe868) at
../../gcc/main.c:35


-- 
           Summary: ICE in resolve_equivalence()
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: spop at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]