[Bug c++/118236] gcc does not realize ambiguous friend class declaration with multiple using namespace

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 30 10:16:44 GMT 2024


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 60002
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60002&action=edit
A better testcase

This shows what is happening; basically this friend is causing to define a
class I in the namespace enclosed by class J. It only happens for ambigous
definitions.


More information about the Gcc-bugs mailing list