This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13714] [3.4/3.5 Regression] destructor name `const s' does not match type `const s' of expression
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2004 19:33:27 -0000
- Subject: [Bug c++/13714] [3.4/3.5 Regression] destructor name `const s' does not match type `const s' of expression
- References: <20040116214909.13714.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-05 19:33 -------
This code is invalid, according to the current standard, although the error
message is misleading.
The example in 12.4/2 (even as amended by DR 244) does not mention cv-qualification.
The standard says that the destructor name must name "the destructor's class
type", not must name "a possibly cv-qualified variant of the destructor's class
type."
I am working on a fix for the error message.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13714