From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26796 invoked by alias); 17 Feb 2008 22:58:03 -0000 Received: (qmail 26681 invoked by uid 48); 17 Feb 2008 22:57:23 -0000 Date: Sun, 17 Feb 2008 22:58:00 -0000 Subject: [Bug c++/35241] New: [4.3 regression] ICE with sizeof in variadic template 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-02/txt/msg01956.txt.bz2 The following invalid code snippet triggers an ICE on mainline: =================================================== template struct A { enum { e = sizeof(T) }; }; A a; =================================================== bug.cc: In instantiation of 'A': bug.cc:6: instantiated from here bug.cc:3: internal compiler error: in dependent_type_p, at cp/pt.c:15553 Please submit a full bug report, [etc.] -- Summary: [4.3 regression] ICE with sizeof in variadic template 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=35241