https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118071
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|DUPLICATE |INVALID --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #3) > Dup of PR 48818 anyway. > > *** This bug has been marked as a duplicate of bug 48818 *** No it is not. This is just invalid. In this case std::vector<int> is default visibility and int has no visibility since it is global type. So this case is just invalid.