public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key [not found] <bug-21498-4@http.gcc.gnu.org/bugzilla/> @ 2011-09-10 3:30 ` redi at gcc dot gnu.org 2024-02-07 9:27 ` jlame646 at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: redi at gcc dot gnu.org @ 2011-09-10 3:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| | --- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-10 00:03:36 UTC --- (In reply to comment #14) > In C++0x the testcase is still ill-formed, but changing "friend class" to > "friend typename" makes it well-formed. I'm not going to give an error for > this usage until the other usage is implemented. > > http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1791.pdf ... which you did for PR 47721 :) ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key [not found] <bug-21498-4@http.gcc.gnu.org/bugzilla/> 2011-09-10 3:30 ` [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key redi at gcc dot gnu.org @ 2024-02-07 9:27 ` jlame646 at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: jlame646 at gmail dot com @ 2024-02-07 9:27 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498 Jason Liam <jlame646 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jlame646 at gmail dot com --- Comment #16 from Jason Liam <jlame646 at gmail dot com> --- GCC still accepts the code when it is ill-formed as explained here:https://stackoverflow.com/questions/77932976/why-is-a-type-alias-not-allowed-to-be-a-friend-class-name-in-c/77932987#77932987 Here is a demo that shows that gcc accepts the invalid code: https://godbolt.org/z/sK8Trh5PG ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <bug-21498-8718@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key [not found] <bug-21498-8718@http.gcc.gnu.org/bugzilla/> @ 2009-11-03 18:40 ` jason at gcc dot gnu dot org 0 siblings, 0 replies; 3+ messages in thread From: jason at gcc dot gnu dot org @ 2009-11-03 18:40 UTC (permalink / raw) To: gcc-bugs ------- Comment #14 from jason at gcc dot gnu dot org 2009-11-03 18:40 ------- In C++0x the testcase is still ill-formed, but changing "friend class" to "friend typename" makes it well-formed. I'm not going to give an error for this usage until the other usage is implemented. http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1791.pdf -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[c++0x] clause 7.1.5.3/2 of |[c++0x] friend declaration |the c++ is not enforced |can name non-class with | |class-key http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-07 9:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-21498-4@http.gcc.gnu.org/bugzilla/> 2011-09-10 3:30 ` [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key redi at gcc dot gnu.org 2024-02-07 9:27 ` jlame646 at gmail dot com [not found] <bug-21498-8718@http.gcc.gnu.org/bugzilla/> 2009-11-03 18:40 ` jason at gcc dot gnu dot org
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).