From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22356 invoked by alias); 6 Jul 2006 21:05:35 -0000 Received: (qmail 22338 invoked by uid 48); 6 Jul 2006 21:05:29 -0000 Date: Thu, 06 Jul 2006 21:05:00 -0000 Subject: [Bug c++/28293] New: ICE on invalid typedef 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-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00489.txt.bz2 List-Id: The following invalid code snippet triggers an ICE since at least GCC 2.95.3: ====================== template void foo(); struct A { typedef void foo<0>(); }; ====================== bug.cc:5: internal compiler error: tree check: expected identifier_node, have template_id_expr in grokfield, at cp/decl2.c:805 Please submit a full bug report, [etc.] -- Summary: ICE on invalid typedef Product: gcc Version: 4.2.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=28293