This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13714] destructor name `const s' does not match type `const s' of expression
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2004 04:13:44 -0000
- Subject: [Bug c++/13714] 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 giovannibajo at libero dot it 2004-01-17 04:13 -------
There are a few open DRs in the standard about name lookup for pseudo
destructor calls, I'll have to review those. But I know they are about relaxing
the requirements.
The pure standard however says that the pseudo destructor name is looked up in
the scope of the nested name specifier in the postfix expression. This makes
your testcase obviously well-formed, so, as a first approximation, this is a
rejects-valid.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|diagnostic |rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13714