aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-08-24 12:31:06 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-08-24 14:42:24 +0100
commitd8b7282ea27e02f687272cb8ea5f66ca900f1582 (patch)
tree121fab5d5553351117fd175478c9207c7f89f818
parent6e5401e87d02919b0594e04f828892deef956407 (diff)
downloadgcc-d8b7282ea27e02f687272cb8ea5f66ca900f1582.zip
gcc-d8b7282ea27e02f687272cb8ea5f66ca900f1582.tar.gz
gcc-d8b7282ea27e02f687272cb8ea5f66ca900f1582.tar.bz2
libstdc++: Fix mismatched class-key tags
Clang warns about this, but GCC doesn't (see PR c++/102036). Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * src/c++11/cxx11-shim_facets.cc: Fix mismatched class-key in explicit instantiation definitions.
-rw-r--r--libstdc++-v3/src/c++11/cxx11-shim_facets.cc28
1 files 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 3aa085b..ba87740 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<char>;
- template class collate_shim<char>;
- template class moneypunct_shim<char, true>;
- template class moneypunct_shim<char, false>;
- template class money_get_shim<char>;
- template class money_put_shim<char>;
- template class messages_shim<char>;
+ template struct numpunct_shim<char>;
+ template struct collate_shim<char>;
+ template struct moneypunct_shim<char, true>;
+ template struct moneypunct_shim<char, false>;
+ template struct money_get_shim<char>;
+ template struct money_put_shim<char>;
+ template struct messages_shim<char>;
#ifdef _GLIBCXX_USE_WCHAR_T
- template class numpunct_shim<wchar_t>;
- template class collate_shim<wchar_t>;
- template class moneypunct_shim<wchar_t, true>;
- template class moneypunct_shim<wchar_t, false>;
- template class money_get_shim<wchar_t>;
- template class money_put_shim<wchar_t>;
- template class messages_shim<wchar_t>;
+ template struct numpunct_shim<wchar_t>;
+ template struct collate_shim<wchar_t>;
+ template struct moneypunct_shim<wchar_t, true>;
+ template struct moneypunct_shim<wchar_t, false>;
+ template struct money_get_shim<wchar_t>;
+ template struct money_put_shim<wchar_t>;
+ template struct messages_shim<wchar_t>;
#endif
template<typename C>