[cfe-commits] r78332 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclCXX.cpp test/CXX/class/class.friend/p1.cpp

Eli Friedman eli.friedman at gmail.com
Thu Aug 6 14:04:11 PDT 2009


On Thu, Aug 6, 2009 at 1:49 PM, John McCall<rjmccall at apple.com> wrote:
> Author: rjmccall
> Date: Thu Aug  6 15:49:32 2009
> New Revision: 78332
>
> URL: http://llvm.org/viewvc/llvm-project?rev=78332&view=rev
> Log:
> Permit a class to friend its members in C++0x, without restriction.
> Permit a class to friend its class members in C++ 98, as long as extensions
> are enabled (and even when they aren't, only give an extwarn about it).

We generally prefer to make a warning "Extension" rather than an
"ExtWarn" outside of GNU mode.

-Eli




More information about the cfe-commits mailing list