[Bug c++/10926] ICE in build_delete when trying to declare template destructor
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 21 17:19:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10926
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-08-21 17:19 -------
The bug isn't fixed entirely:
If you just declare the template destructor, you'll still get an ICE:
============================================
struct Foo
{
template <int i>
~Foo();
};
============================================
Compiling the ocde snippet above causes:
hallo.cc:4: error: destructor `Foo::~Foo()' declared as member template
hallo.cc:4: internal compiler error: in grokfield, at cp/decl2.c:1026
Please submit a full bug report, [etc.]
on mainline.
More information about the Gcc-bugs
mailing list