This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
- From: "Simon dot Richter at hogyros dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2004 13:36:59 -0000
- Subject: [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
I'm writing a library that extends the stream classes. Since the standard
instantiations of the iostream templates are already contained in libstdc++,
I would expect these not to be incorporated into my library (i.e. marked
"extern" in some header file). This is true for std::istream and std::ostream
(and their wide counterparts), but not for std::iostream, which is
instantiated and placed in my library.
I believe that std::iostream and std::wiostream should be marked "extern".
Simon
--
Summary: std::basic_iostream is instantiated when used, even
though instantiations are already contained in libstdc++
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Simon dot Richter at hogyros dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16715