This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19397] New: [3.4 regression] ICE with 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: 12 Jan 2005 13:13:01 -0000
- Subject: [Bug c++/19397] New: [3.4 regression] ICE with invalid typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code causes an ICE with gcc 3.4.x
(3.3.x and mainline are not affected):
================================
template<typename> struct A
{
typedef int ::template;
};
================================
bug.cc:3: error: expected id-expression before "template"
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
Summary: [3.4 regression] ICE with invalid typedef
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19397