From: Jonathan Wakely Date: Tue, 24 Aug 2021 11:31:06 +0000 (+0100) Subject: libstdc++: Fix mismatched class-key tags X-Git-Tag: basepoints/gcc-13~5195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8b7282ea27e02f687272cb8ea5f66ca900f1582;p=thirdparty%2Fgcc.git libstdc++: Fix mismatched class-key tags Clang warns about this, but GCC doesn't (see PR c++/102036). Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * src/c++11/cxx11-shim_facets.cc: Fix mismatched class-key in explicit instantiation definitions. --- diff --git a/libstdc++-v3/src/c++11/cxx11-shim_facets.cc b/libstdc++-v3/src/c++11/cxx11-shim_facets.cc index 3aa085b8aa79..ba87740d57ee 100644 --- a/libstdc++-v3/src/c++11/cxx11-shim_facets.cc +++ b/libstdc++-v3/src/c++11/cxx11-shim_facets.cc @@ -469,21 +469,21 @@ namespace __facet_shims } }; - template class numpunct_shim; - template class collate_shim; - template class moneypunct_shim; - template class moneypunct_shim; - template class money_get_shim; - template class money_put_shim; - template class messages_shim; + template struct numpunct_shim; + template struct collate_shim; + template struct moneypunct_shim; + template struct moneypunct_shim; + template struct money_get_shim; + template struct money_put_shim; + template struct messages_shim; #ifdef _GLIBCXX_USE_WCHAR_T - template class numpunct_shim; - template class collate_shim; - template class moneypunct_shim; - template class moneypunct_shim; - template class money_get_shim; - template class money_put_shim; - template class messages_shim; + template struct numpunct_shim; + template struct collate_shim; + template struct moneypunct_shim; + template struct moneypunct_shim; + template struct money_get_shim; + template struct money_put_shim; + template struct messages_shim; #endif template