https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119527
--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> --- GCC 14 compiles and links this successfully but this is not a regression; GCC 14 just didn't handle internal-linkage entities properly and so 's' wasn't actually imported, as can be confirmed by trying to do e.g. int main() { s.key(); }