public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* (Template) friend class cannot inherit from private member of class declaring friendship
@ 2019-11-08 14:05 Kilian, Jens
  0 siblings, 0 replies; only message in thread
From: Kilian, Jens @ 2019-11-08 14:05 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-08 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 14:05 (Template) friend class cannot inherit from private member of class declaring friendship Kilian, Jens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).