[cfe-commits] r58866 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/Basic/DiagnosticKinds.def lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/SemaCXX/destructor.cpp

Mike Stump mrs at apple.com
Tue Nov 11 16:30:56 PST 2008


On Nov 11, 2008, at 3:19 PM, Sebastian Redl wrote:
> Argiris Kirtzidis wrote:
>> gcc compiles:
>>
>> class C : public B {
>>  void m() {
>>    this->~B();
>>  }
>> };
>>
>> Is this incorrect code ?
> Yes, according to 5.2.4p2: "The type designated by the
> pseudo-destructor-name shall be the same as the object type."

I filed http://gcc.gnu.org/PR38087 just in case people are interested.



More information about the cfe-commits mailing list