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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> C++11 says that the address of __func__ can be the same as address of other
> string literals, so I think that allows putting it into mergeable section.
> But what isn't clear to me is if __func__ is used in some inline function,
> if the standard allows __func__ to have different addresses between
> different compilation units.

The Core WG seems to be moving toward dropping the requirement that string
literals have the same address in different compilation units, so I think we
don't need to worry about __func__ either.

Reply via email to