[Bug c++/58053] Bogus error ... is private ... within this context
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58053 Paul Pluzhnikov ppluzhnikov at google dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from Paul Pluzhnikov ppluzhnikov at google dot com --- Quoting Richard Smith: The standard used to say this was invalid and now says it's valid, per DR372. This is a g++ bug, at least in C++11 mode and probably also in C++98 mode (things aren't really clear-cut for issues that were resolved post-C++03, but this seems like a clear case of a DR to me). See llvm.org/PR16774 and http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#372
[Bug c++/58053] Bogus error ... is private ... within this context
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58053 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Andrew Pinski pinskia at gcc dot gnu.org --- Dup of bug 58054 then. *** This bug has been marked as a duplicate of bug 58054 ***
[Bug c++/58053] Bogus error ... is private ... within this context
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58053 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org --- Copied from bug 14281: [class.friend]/2 in the C++ 1998 Standard, which says: Also, because the base-clause of the friend class is not part of its member declarations, the base-clause of the friend class cannot access the names of the private and protected members from the class granting friendship. So this is invalid code unless this changed for C++11 or C++14.