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.