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

--- Comment #3 from Christoph Steefel <cfsteefel at arista dot com> ---
(In reply to Andrew Pinski from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > I am 99% sure this was a fix and the warning is correct now vs what it was
> > before and not being hidden.
> 
> yes see PR 70413 which fixes the issue with respect to pointer to member
> functions and template decls.

To try to clarify this for myself then:
If a template instantiation uses a hidden visibility type or
pointer-to-member-function, we expect that template instantiation to also
receive hidden visibility by default?

And thus, the workaround is to explicitly provide default/public visibility
from whatever contains or inherits from that template instantiation?

Separately for my learning, is there any way to query what visibility gcc
assigns to something or debug it?

Reply via email to