[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
mrs at apple.com
Wed Nov 12 10:40:02 PST 2008
On Nov 12, 2008, at 9:28 AM, Sebastian Redl wrote:
> Mike Stump wrote:
>> On Nov 11, 2008, at 3:19 PM, Sebastian Redl wrote:
>>>> 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."
> Hmm, seems I was too hasty there.
:-) The fun of reading a standard.
Just keep in mind, the people that work on g++ have had a presense on
the standards committee since before 1992 and can change the working
paper to reflect g++'s behavior, so, even if you think you know what
the standard says, it might not. :-) I think we should file a bug
report against g++ anytime we think they got it wrong, so that in the
end, at least g++ and clang can agree upon what the standard says.
More information about the cfe-commits