From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14244 invoked by alias); 26 Dec 2006 13:28:59 -0000 Received: (qmail 14183 invoked by uid 48); 26 Dec 2006 13:28:46 -0000 Date: Tue, 26 Dec 2006 13:28:00 -0000 Subject: [Bug c++/30303] New: [4.2/4.3 regression] ICE with invalid constructor definition X-Bugzilla-Reason: CC Message-ID: 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: 2006-12/txt/msg01894.txt.bz2 The following invalid code snippet triggers an ICE on mainline and 4.2 branch: ================================== class A { int i; }; A::A() { A(); } ================================== bug.cc:6: error: definition of implicitly-declared 'A::A()' bug.cc:6: error: declaration of 'A::A()' throws different exceptions bug.cc:2: error: from previous declaration 'A::A() throw ()' bug.cc: In constructor 'A::A()': bug.cc:6: internal compiler error: in finish_function, at cp/decl.c:11162 Please submit a full bug report, [etc.] -- Summary: [4.2/4.3 regression] ICE with invalid constructor definition Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30303