This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15947] Puzzling error message for wrong destructor declaration in template class
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2004 12:23:06 -0000
- Subject: [Bug c++/15947] Puzzling error message for wrong destructor declaration in template class
- References: <20040611172213.15947.pkoning@equallogic.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-06-12 12:22 -------
Actually, it turns out that it's unclear whether the standard allows naming
the destructor as a template. The lookup rules are complex and confusing,
there are a couple of defect reports (DR 399 and DR 244 for instance) and it
is still unclear.
My general understanding is that the committee is going to allow more complex
forms of destructor naming rather than limiting it.
I'm testing a patch which lets GCC accepts the templated form without an
error.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|diagnostic |rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15947