From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23875 invoked by alias); 9 Oct 2008 21:03:20 -0000 Received: (qmail 23564 invoked by uid 48); 9 Oct 2008 21:02:04 -0000 Date: Thu, 09 Oct 2008 21:03:00 -0000 Subject: [Bug c++/37789] New: [4.4 regression] ICE with __FUNCTION__ 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: 2008-10/txt/msg00661.txt.bz2 The following invalid code snippet triggers an ICE on mainline: =================== void foo(): { __FUNCTION__; } =================== bug.cc: In function 'void foo()': bug.cc:2: error: only constructors take base initializers bug.cc:2: error: expected identifier before '{' token bug.cc:2: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x cc1plus: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The regression was introduced between 2008-06-26 and 2008-07-05. -- Summary: [4.4 regression] ICE with __FUNCTION__ Product: gcc Version: 4.4.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=37789