https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|46589                       |
             Blocks|                            |46589

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> Maybe we should make this ill-formed for C++20, and a pedwarn otherwise, so
> existing code continues to compile using previous standards.

Though both PR 46589 and PR 117505 show that we get it wrong with older
standards 
 so maybe rejecting it is ok.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46589
[Bug 46589] struct member function not declared global

Reply via email to