This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19441] New: [3.4 regression] ICE with invalid destructor declaration
- 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: 14 Jan 2005 11:50:34 -0000
- Subject: [Bug c++/19441] New: [3.4 regression] ICE with invalid destructor declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet causes an ICE in gcc 3.4.x:
==================================
template<int> struct A
{
A<int>::~A() {}
};
==================================
bug.cc:3: error: type/value mismatch at argument 1 in template parameter list
for `template<int <anonymous> > struct A'
bug.cc:3: error: expected a constant of type `int', got `int'
bug.cc:3: internal compiler error: in grokdeclarator, at cp/decl.c:6534
Please submit a full bug report, [etc.]
--
Summary: [3.4 regression] ICE with invalid destructor declaration
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
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=19441