[Bug c++/95677] undefined reference to `(anonymous namespace)::xx'
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 12:07:27 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95677
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Nathan Sidwell from comment #3)
> I think the testcase is should be formed. it was ok in C++98, but that
Should be ill-formed you wanted to say? Even better. Note with -std=c++98
we still would have the wrong-code issue.
> changed when anonymous namespaces gave their contents internal linkage
> (rather than external but with unpronounceable symbols).
>
> [basic.link]/6 does not anticipate this issue.
More information about the Gcc-bugs
mailing list