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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-11-11
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|False positive warning      |[16 Regression] False
                   |'expose TU-local entity'    |positive warning 'expose
                   |                            |TU-local entity' since
                   |                            |r16-5049
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot 
gnu.org
                 CC|                            |nshead at gcc dot gnu.org

--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Confirmed, cause by my r16-5049-gf5db79b06eb85f715dc3180065cb326ed180ab23.

Looks like I need to be even more cautious with finding internal-linkage
entities to warn on here; the issue is that Foo<Bar>::lambda has been given
internal linkage because Bar has internal linkage, but is still considered an
imported entity.

Maybe need to rethink the approach of this entirely as I'm not sure there's a
good way to guarantee we get only exactly the cases we should warn on...

Reply via email to