[llvm-bugs] [Bug 35055] New: friend declaration in derived class does not get honored
llvm-bugs at lists.llvm.org
Tue Oct 24 04:50:14 PDT 2017
Bug ID: 35055
Summary: friend declaration in derived class does not get
Assignee: unassignedclangbugs at nondot.org
Reporter: John.Tytgat at esko.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The following produces a ".... is a protected member of..." error while the
friend declaration in the derived class is honored by gcc (multiple versions
upto trunk), Visual Studio (multiple versions upto VS2017) and ICC.
Are they all wrongly accepting this code, or is this a Clang only issue ?
static void Bar();
: public Foo
friend class AFriend;
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs