From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16419 invoked by alias); 12 Jan 2008 19:24:04 -0000 Received: (qmail 16279 invoked by uid 48); 12 Jan 2008 19:23:20 -0000 Date: Sat, 12 Jan 2008 19:44:00 -0000 Message-ID: <20080112192320.16278.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/34750] [4.1/4.2 Regression] ICE in fold_convert, at fold-const.c:1955 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt 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: 2008-01/txt/msg01173.txt.bz2 ------- Comment #5 from reichelt at gcc dot gnu dot org 2008-01-12 19:23 ------- Even further reduced testcase: ================================= struct A { template A(T); }; class C; struct B : A { B(const C& c) : A(c) {} }; struct C { C(const C&); C(); C& operator= (const C&); }; B b = C(); ================================= bug.cc: In constructor 'B::B(const C&)': bug.cc:10: internal compiler error: in cp_expr_size, at cp/cp-objcp-common.c:100 Please submit a full bug report, [etc.] This is really invalid code (C is used before it is defined). The bug was fixed on mainline between 2007-10-13 and 2007-11-13. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Keywords| |ice-on-invalid-code, | |monitored Known to fail|4.0.4 4.1.3 4.2.3 |4.0.4 4.1.2 4.1.3 4.2.0 | |4.2.1 4.2.2 4.2.3 Known to work|3.4.6 4.3.0 |3.4.6 4.0.0 4.0.3 4.1.0 | |4.1.1 4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34750