[Bug c++/72708] error on anonymous union in an unnamed namespace
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 27 17:29:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72708
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I don't think so. Static != internal linkage.
Quoting also from [basic.link], paragraph 3, to avoid confusion:
A name having namespace scope (3.3.6) has internal linkage if it is the name
of
-- a variable, function or function template that is explicitly declared
static; or, ...
-- a data member of an anonymous union.
More information about the Gcc-bugs
mailing list