This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor
- 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: 2 Feb 2005 16:42:14 -0000
- Subject: [Bug c++/19764] New: [3.3/3.4 regression] ICE on explicit instantiation of a non-template destructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet causes an ICE in gcc 3.3.x, and 3.4.[34]:
======================================
struct A;
template A<>::~A();
======================================
The error message on the 3.4 branch is:
bug.cc:2: error: `A' is not a template
bug.cc:2: error: expected id-expression before '~' token
bug.cc:2: error: abstract declarator `A' used as declaration
bug.cc:2: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in do_decl_instantiation, at cp/pt.c:10668
Please submit a full bug report, [etc.]
We did not ICE in gcc 3.2.x.
--
Summary: [3.3/3.4 regression] ICE on explicit instantiation of a
non-template destructor
Product: gcc
Version: 4.0.0
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=19764