This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43253] g++ chokes on pseudo destructor call
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2010 10:02:29 -0000
- Subject: [Bug c++/43253] g++ chokes on pseudo destructor call
- References: <bug-43253-18400@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from paolo dot carlini at oracle dot com 2010-03-04 10:02 -------
This is illegal. You want something like:
typedef int I;
I *x = new I();
x->I::~I();
which is explicitly allowed in 12.4/15. Other relevant references are 5.2.4/1
and 7.1.5.2, which says that a type-name can be either a class-name, an
enum-name, or a typedef-name, nothing else. For the record, EDG-based compilers
in strict-mode also reject the snippet.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43253