This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28293] New: ICE on invalid typedef
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2006 21:05:29 -0000
- Subject: [Bug c++/28293] New: ICE on invalid typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since at least GCC 2.95.3:
======================
template<int> 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