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++/43253] g++ chokes on pseudo destructor call



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


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