[Bug c++/66836] inconsistent unqualified lookup for friend declaration

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 22 17:50:00 GMT 2017


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Well "friend void f();" can't match Outer::f because you can't declare a member
function like that except in the class' own scope. What GCC and Clang do is
what the standard intended to say but fails to say clearly, which is Core issue
138 https://wg21.link/cwg138


More information about the Gcc-bugs mailing list