From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12685 invoked by alias); 25 Jun 2010 02:37:04 -0000 Received: (qmail 12623 invoked by uid 48); 25 Jun 2010 02:36:48 -0000 Date: Fri, 25 Jun 2010 02:37:00 -0000 Subject: [Bug fortran/44660] New: ICE in resolve_equivalence() X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "spop at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg02414.txt.bz2 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 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