From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10291 invoked by alias); 27 Jul 2005 18:54:34 -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 10277 invoked by uid 48); 27 Jul 2005 18:54:30 -0000 Date: Wed, 27 Jul 2005 19:03:00 -0000 From: "dank at kegel dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050727185429.23099.dank@kegel.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23099] New: [4.0 regression] ICE in build_simple_base_path, at cp/class.c:460 X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03593.txt.bz2 List-Id: The following test case: ------------------------------------------------------------ struct Base { int x; }; template struct A { static const int N = sizeof(static_cast(T())); }; struct Derived : Base { A a; }; ------------------------------------------------------------ gcc 2.95.3: compiles gcc 3.4.4: compiles gcc 4.0.1: ICE b1.cc: In instantiation of 'A': b1.cc:11: instantiated from here b1.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:459 gcc-4.1-20050716: ICE bug.cc: In instantiation of 'A': bug.cc:11: instantiated from here bug.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:460 gcc CVS 2005-07-25: ICE b1.cc: In instantiation of 'A': b1.cc:11: instantiated from here b1.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:461 Thanks to mec for uncovering this, and bgibbons for minimizing the test case. -- Summary: [4.0 regression] ICE in build_simple_base_path, at cp/class.c:460 Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dank at kegel dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23099