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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to