(Template) friend class cannot inherit from private member of class declaring friendship

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is this legal C++?  It's rejected by GCC, but accepted by Clang.

https://godbolt.org/z/GrGk5Y

This version, with a non-template derived class, is accepted:

https://godbolt.org/z/PEAGNS




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux