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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|[modules] Bogus conflicting |[15/16 Regression][modules]
                   |friend template declaration |Bogus conflicting friend
                   |                            |template declaration
                 CC|                            |nshead at gcc dot gnu.org
   Last reconfirmed|                            |2025-04-19

--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Confirmed.  We should find this in 'lookup_imported_hidden_friend' when doing
'tsubst_friend_class' but we currently do not, because the template is not
registered on the current module lookup since it's not considered an
uninstantiated friend.

This worked in GCC 14; looks like perhaps because we just didn't check for
conflicting decls at the time?

Reply via email to