Bug 13884 - Protect sstream.tcc from extern template use
Summary: Protect sstream.tcc from extern template use
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 3.3.3
Assignee: Paolo Carlini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 11:32 UTC by Grigory Zagorodnev
Modified: 2004-01-27 12:42 UTC (History)
1 user (show)

See Also:
Host: i686-redhat-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-01-27 11:41:17


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grigory Zagorodnev 2004-01-27 11:32:31 UTC
A guarding preprocessor condition is missing in file "include/bits/sstream.tcc"
to disbale extern template feature use. It is expected to see the following:

#if _GLIBCPP_EXTERN_TEMPLATE
  extern template class basic_stringbuf<char>;
  extern template class basic_istringstream<char>;
  ...
#endif
Comment 1 CVS Commits 2004-01-27 12:37:45 UTC
Subject: Bug 13884

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	paolo@gcc.gnu.org	2004-01-27 12:37:38

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/bits: sstream.tcc 

Log message:
	2004-01-27  Paolo Carlini  <pcarlini@suse.de>
	
	PR libstdc++/13884
	* include/bits/sstream.tcc: Guard use of extern template.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2257&r2=1.2258
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/sstream.tcc.diff?cvsroot=gcc&r1=1.37&r2=1.38

Comment 2 CVS Commits 2004-01-27 12:39:45 UTC
Subject: Bug 13884

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	paolo@gcc.gnu.org	2004-01-27 12:39:40

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/bits: sstream.tcc 

Log message:
	2004-01-27  Paolo Carlini  <pcarlini@suse.de>
	
	PR libstdc++/13884
	* include/bits/sstream.tcc: Guard use of extern template.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.9&r2=1.2224.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/sstream.tcc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.37&r2=1.37.4.1

Comment 3 CVS Commits 2004-01-27 12:40:30 UTC
Subject: Bug 13884

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	paolo@gcc.gnu.org	2004-01-27 12:40:26

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/bits: sstream.tcc 

Log message:
	2004-01-27  Paolo Carlini  <pcarlini@suse.de>
	
	PR libstdc++/13884
	* include/bits/sstream.tcc: Guard use of extern template.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1464.2.171&r2=1.1464.2.172
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/sstream.tcc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.13&r2=1.13.4.1

Comment 4 Paolo Carlini 2004-01-27 12:42:02 UTC
Fixed for 3.3.3.