From: Paolo Carlini Date: Tue, 27 Jan 2004 12:40:25 +0000 (+0000) Subject: re PR libstdc++/13884 (Protect sstream.tcc from extern template use) X-Git-Tag: releases/gcc-3.3.3~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd62097cf4901d8f49c8b92668e3834175b9727;p=thirdparty%2Fgcc.git re PR libstdc++/13884 (Protect sstream.tcc from extern template use) 2004-01-27 Paolo Carlini PR libstdc++/13884 * include/bits/sstream.tcc: Guard use of extern template. From-SVN: r76700 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 15540734609f..f30723246e02 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-01-27 Paolo Carlini + + PR libstdc++/13884 + * include/bits/sstream.tcc: Guard use of extern template. + 2004-01-27 Paolo Carlini * include/bits/locale_facets.tcc diff --git a/libstdc++-v3/include/bits/sstream.tcc b/libstdc++-v3/include/bits/sstream.tcc index 606705c02e91..fa43d1cda598 100644 --- a/libstdc++-v3/include/bits/sstream.tcc +++ b/libstdc++-v3/include/bits/sstream.tcc @@ -225,6 +225,7 @@ namespace std // 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; extern template class basic_istringstream; extern template class basic_ostringstream; @@ -236,6 +237,7 @@ namespace std extern template class basic_ostringstream; extern template class basic_stringstream; #endif +#endif } // namespace std #endif