From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5210 invoked by alias); 6 Nov 2013 16:06:43 -0000 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 Received: (qmail 4257 invoked by uid 48); 6 Nov 2013 16:04:40 -0000 From: "regehr at cs dot utah.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/59006] internal compiler error: in vect_transform_stmt, at tree-vect-stmts.c:5963 Date: Wed, 06 Nov 2013 16:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: regehr at cs dot utah.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00513.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59006 --- Comment #1 from John Regehr --- Simpler test case: $ cat small.c int a[10], b; int main() { for (; b <=3D 0; b++) a[b] =3D a[0] || b; } $ gcc -O3 small.c small.c: In function =E2=80=98main=E2=80=99: small.c:2:5: internal compiler error: in vect_transform_stmt, at tree-vect-stmts.c:5963 int main() { ^ 0xb333d7 vect_transform_stmt(gimple_statement_d*, gimple_stmt_iterator_d*, bool*, _slp_tree*, _slp_instance*) /home/regehr/z/compiler-source/gcc/gcc/tree-vect-stmts.c:5963 0xb363d1 vect_transform_loop(_loop_vec_info*) /home/regehr/z/compiler-source/gcc/gcc/tree-vect-loop.c:5882 0xb5352f vectorize_loops() /home/regehr/z/compiler-source/gcc/gcc/tree-vectorizer.c:373 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-433737-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 06 16:47:12 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11074 invoked by alias); 6 Nov 2013 16:47:12 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9126 invoked by uid 48); 6 Nov 2013 16:45:10 -0000 From: "kimwooyoung at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59024] New: ICE: after printing certain error messages, the compiler seg faults. Date: Wed, 06 Nov 2013 16:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kimwooyoung at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00514.txt.bz2 Content-length: 2549 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59024 Bug ID: 59024 Summary: ICE: after printing certain error messages, the compiler seg faults. Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kimwooyoung at gmail dot com This reproducer causes the compiler to seg fault. The compiler exits normally with the commented-out version. The reproducer is not a legal fortran program, but the compiler should not die with a seg fault. MODULE mtc USE ISO_C_BINDING PRIVATE PUBLIC :: tc, not_present1, & TYPE tc END TYPE tc INTERFACE tc MODULE PROCEDURE tc_ctor END INTERFACE tc CONTAINS ! TYPE(tc) FUNCTION tc_ctor() result(t) ! END FUNCTION tc_ctor FUNCTION tc_ctor() result(t) TYPE(tc) t END FUNCTION tc_ctor END MODULE mtc ======================= gfortran -c gf_reprod.F90 gf_reprod.F90:6.6: TYPE tc 1 Error: Syntax error in PUBLIC statement at (1) gf_reprod.F90:7.5: END TYPE tc 1 Error: Expecting END MODULE statement at (1) gf_reprod.F90:15.12: TYPE(tc) t 1 Error: Derived type 'tc' at (1) is being used before it is defined f951: internal compiler error: Segmentation fault 0x869cbf crash_signal ../../gcc-4.8.2/gcc/toplev.c:332 0x50b3fb show_locus ../../gcc-4.8.2/gcc/fortran/error.c:310 0x50bc90 show_loci ../../gcc-4.8.2/gcc/fortran/error.c:434 0x50bc90 error_print ../../gcc-4.8.2/gcc/fortran/error.c:666 0x50c778 gfc_error(char const*, ...) ../../gcc-4.8.2/gcc/fortran/error.c:961 0x5144f7 check_interface0 ../../gcc-4.8.2/gcc/fortran/interface.c:1477 0x516dd4 check_sym_interfaces ../../gcc-4.8.2/gcc/fortran/interface.c:1589 0x57e693 do_traverse_symtree ../../gcc-4.8.2/gcc/fortran/symbol.c:3575 0x516ebc gfc_check_interfaces(gfc_namespace*) ../../gcc-4.8.2/gcc/fortran/interface.c:1699 0x55d51e resolve_types ../../gcc-4.8.2/gcc/fortran/resolve.c:14989 0x55dda0 gfc_resolve ../../gcc-4.8.2/gcc/fortran/resolve.c:15073 0x552486 gfc_parse_file() ../../gcc-4.8.2/gcc/fortran/parse.c:4614 0x58e365 gfc_be_parse_file ../../gcc-4.8.2/gcc/fortran/f95-lang.c:189 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.