This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix libstdc++/13884
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 27 Jan 2004 12:51:34 +0100
- Subject: [v3] Fix libstdc++/13884
Hi,
after due testing, I'll commit this trivial fix everywhere.
Paolo.
//////////////
2004-01-27 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13884
* include/bits/sstream.tcc: Guard use of extern template.
diff -urN libstdc++-v3-orig/include/bits/sstream.tcc libstdc++-v3/include/bits/sstream.tcc
--- libstdc++-v3-orig/include/bits/sstream.tcc 2003-12-05 07:54:22.000000000 +0100
+++ libstdc++-v3/include/bits/sstream.tcc 2004-01-27 12:45:33.000000000 +0100
@@ -205,6 +205,7 @@
// Inhibit implicit instantiations for required instantiations,
// which are defined via explicit instantiations elsewhere.
// NB: This syntax is a GNU extension.
+#if _GLIBCXX_EXTERN_TEMPLATE
extern template class basic_stringbuf<char>;
extern template class basic_istringstream<char>;
extern template class basic_ostringstream<char>;
@@ -216,6 +217,7 @@
extern template class basic_ostringstream<wchar_t>;
extern template class basic_stringstream<wchar_t>;
#endif
+#endif
} // namespace std
#endif