From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21896 invoked by alias); 27 May 2005 19:28:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21874 invoked by uid 48); 27 May 2005 19:27:57 -0000 Date: Fri, 27 May 2005 19:28:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050527192754.21789.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/21789] New: [4.1 regression] ICE with -ftree-vectorize X-Bugzilla-Reason: CC X-SW-Source: 2005-05/txt/msg03626.txt.bz2 List-Id: The following testcase crashes mainline when compiled with g++ -O -ftree-vectorize: ================================================================== struct C; struct A { void foo(const C&) { bar(); } void bar(); }; struct B { short int x[2]; B() { short int* p=x; for (int i=0; i<2; ++i) p[i] = 0; } }; struct C { A* p; char c; B b; void baz() const { p->bar(); } }; void foobar(C& c, A& a) { c.baz(); a.foo(C()); } ================================================================== The error message is: bug.cc: In function 'void foobar(C&, A&)': bug.cc:24: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa, at tree-ssa.c:750 Please submit a full bug report, [etc.] The 4.0 branch is not affected. -- Summary: [4.1 regression] ICE with -ftree-vectorize Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21789