[Bug c++/13714] [3.4/3.5 Regression] destructor name `const s' does not match type `const s' of expression
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 5 19:33:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list