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++/13714] [3.4/3.5 Regression] destructor name `const s' does not match type `const s' of expression


------- 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


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