[Bug c++/97475] An unnamed class with a typedef name for linkage purposes having a method.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 --- Comment #4 from Anders Granlund --- Sounds good to me! On Thu, 5 Aug 2021, 13:35 redi at gcc dot gnu.org, wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 > > --- Comment #3 from Jonathan Wakely --- > Maybe we should make this ill-formed for C++20, and a pedwarn otherwise, so > existing code continues to compile using previous standards. > > -- > You are receiving this mail because: > You reported the bug.
[Bug c++/97475] An unnamed class with a typedef name for linkage purposes having a method.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 --- Comment #3 from Jonathan Wakely --- Maybe we should make this ill-formed for C++20, and a pedwarn otherwise, so existing code continues to compile using previous standards.
[Bug c++/97475] An unnamed class with a typedef name for linkage purposes having a method.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 --- Comment #2 from Jonathan Wakely --- Well that's about the linkage of such entities, this is about whether they are ill-formed. The rule that makes this ill-formed was added by https://wg21.link/p1766r1 but was approved as a defect report against previous standards.
[Bug c++/97475] An unnamed class with a typedef name for linkage purposes having a method.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 Andrew Pinski changed: What|Removed |Added Depends on||46589 --- Comment #1 from Andrew Pinski --- I think this is a dup of bug 46589. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46589 [Bug 46589] struct member function not declared global
[Bug c++/97475] An unnamed class with a typedef name for linkage purposes having a method.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed||2021-08-04