From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24715 invoked by alias); 28 Nov 2007 21:17:55 -0000 Received: (qmail 24665 invoked by uid 48); 28 Nov 2007 21:17:44 -0000 Date: Wed, 28 Nov 2007 21:17:00 -0000 Subject: [Bug c++/34271] New: [4.3 regression] ICE in invalid initialization of static template member 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: 2007-11/txt/msg02852.txt.bz2 The following invalid code snippet triggers an ICE on mainline: ===================================================== template struct A { static int i; }; template int A::i(__decltype( A::i )); ===================================================== bug.cc:6: internal compiler error: in finish_decltype_type, at cp/semantics.c:4158 Please submit a full bug report, [etc.] A slightly modified testcase crashes in a different position: ===================================================== template struct A { static int i; }; template int A::i(__decltype( A::i; ===================================================== bug.cc:6: internal compiler error: in lvalue_p_1, at cp/tree.c:149 Please submit a full bug report, [etc.] -- Summary: [4.3 regression] ICE in invalid initialization of static template member Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=34271