From d8b7282ea27e02f687272cb8ea5f66ca900f1582 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 24 Aug 2021 12:31:06 +0100 Subject: [PATCH] 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. --- libstdc++-v3/src/c++11/cxx11-shim_facets.cc | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) 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 -- 2.47.2