This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/10926] ICE in build_delete when trying to declare template destructor


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]