[Bug c++/93703] global const getting lost in g++

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 12 12:51:00 GMT 2020


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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to felix-gcc from comment #2)
> OK that answers half of the mystery, but why is foo not mangled?

Because the ABI says so.  Only names which can have overloading applied
are usually mangled, that is, variables are not (we seem to choose to
mangle internal variables for some reason).


More information about the Gcc-bugs mailing list