https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89009
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Stephan Bergmann from comment #6) > (In reply to Martin Liška from comment #5) > > Well, I believe the test-case is invalid as one can't have hidden visibility > > and then defined S1::f2 in a different translation unit. > > Why? Isn't hidden visibility just about symbol visibility at the > executable/dynamic library level? I might be wrong. But I would like to see a linkable test-case.