[cfe-dev] Clang C++ compatibility documentation

John McCall rjmccall at apple.com
Thu Mar 4 17:55:59 PST 2010


On Mar 4, 2010, at 5:43 PM, Seo Sanghyeon wrote:

> 2010/3/5 Zhanyong Wan (λx.x x) <wan at google.com>:
>> Chandler told me that you are considering adding documentation to the
>> Clang user's manual about invalid C++ code that GCC accepts but Clang
>> rejects.  I'd like to contribute something there.  Should I just
>> create a patch against the UsersManual.html file?  Thanks,
> 
> Interesting. I personally came across this case:
> http://codepad.org/YQk1rcDx

Yep!  That's one of the classic two-stage lookup differences;  gcc is doing an unqualified lookup at a<int>'s point of instantiation instead of its point of definition.  Dependent ADL doesn't find b<> because the arguments have no associated classes.  We'll be sure to list it, thanks.

John.



More information about the cfe-dev mailing list