https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69125
--- Comment #5 from Thiago Macieira <thiago at kde dot org> --- (In reply to Marek Polacek from comment #4) > It feels like this warning is in place (visibility on something non-public), > on the other hand it should be possible to disable it via pragma. I think > let's close this PR and resolve the pragma issue in the other PR. I agree with that, but please note that the anonymous namespace symbol did have linkage in previous versions of GCC. It was even required in C++98.