From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26634 invoked by alias); 18 Feb 2009 07:54:28 -0000 Received: (qmail 26596 invoked by uid 48); 18 Feb 2009 07:54:16 -0000 Date: Wed, 18 Feb 2009 07:54:00 -0000 Subject: [Bug c++/39225] New: ICE if destructor doen't match class name X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "christi at uni-hd dot de" 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: 2009-02/txt/msg01564.txt.bz2 If the constructor of a class does not match the class name, the compiler dies with a segfault. I'll attach an example program. running > g++ test.cc test.cc:6: internal compiler error: Segmentation fault will already trigger the bug. The source code is not valid code, but with previous versions (e.g. 4.2) I got a meaningful error message: > g++-4.2 test.cc test.cc:6: error: expected class-name before ‘(’ token Cheers Christian -- Summary: ICE if destructor doen't match class name Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: christi at uni-hd dot de GCC build triplet: i386-pc-linux-gnu GCC host triplet: i386-pc-linux-gnu GCC target triplet: i386-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225