public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
@ 2004-07-26 13:37 Simon dot Richter at hogyros dot de
  2004-07-26 14:44 ` [Bug libstdc++/16715] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Simon dot Richter at hogyros dot de @ 2004-07-26 13:37 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/16715] std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
  2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
@ 2004-07-26 14:44 ` pinskia at gcc dot gnu dot org
  2004-09-02 18:37 ` bkoz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-26 14:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-26 14:44 -------
Note extern is a GCC extension.
Also note that this is just size saving and nothing more.
But I will let the libstdc++ people say if this is a good idea or not.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
  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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/16715] std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
  2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
  2004-07-26 14:44 ` [Bug libstdc++/16715] " pinskia at gcc dot gnu dot org
@ 2004-09-02 18:37 ` bkoz at gcc dot gnu dot org
  2004-09-02 18:58 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-09-02 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-09-02 18:37 -------

It looks like io-inst.cc does explicitly instatiate std::iostream for char,
wchar_t. 

So, they should have extern bits in the headers as well.

Fixed, thanks for reporting this.

-benjamin

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16715


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/16715] std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
  2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
  2004-07-26 14:44 ` [Bug libstdc++/16715] " pinskia at gcc dot gnu dot org
  2004-09-02 18:37 ` bkoz at gcc dot gnu dot org
@ 2004-09-02 18:58 ` cvs-commit at gcc dot gnu dot org
  2004-09-08 13:37 ` cvs-commit at gcc dot gnu dot org
  2004-09-09  3:46 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-02 18:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-02 18:58 -------
Subject: Bug 16715

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bkoz@gcc.gnu.org	2004-09-02 18:58:34

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

Log message:
	2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
	Simon Richter  <Simon.Richter@hogyros.de>
	
	PR libstdc++/16715
	* include/bits/istream.tcc: Add extern template for iostream
	char and wchar_t instantiations.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2652&r2=1.2653
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/istream.tcc.diff?cvsroot=gcc&r1=1.71&r2=1.72



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16715


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/16715] std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
  2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
                   ` (2 preceding siblings ...)
  2004-09-02 18:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-08 13:37 ` cvs-commit at gcc dot gnu dot org
  2004-09-09  3:46 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-08 13:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-08 13:37 -------
Subject: Bug 16715

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	bkoz@gcc.gnu.org	2004-09-08 13:37:04

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

Log message:
	2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
	Simon Richter  <Simon.Richter@hogyros.de>
	
	PR libstdc++/16715
	* include/bits/istream.tcc: Add extern template for iostream
	char and wchar_t instantiations.

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.171&r2=1.2224.2.172
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/istream.tcc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.60.4.5&r2=1.60.4.6



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16715


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libstdc++/16715] std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++
  2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
                   ` (3 preceding siblings ...)
  2004-09-08 13:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-09  3:46 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-09  3:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-09 03:46 -------
Fixed for 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16715


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-09  3:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-26 13:37 [Bug libstdc++/16715] New: std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++ Simon dot Richter at hogyros dot de
2004-07-26 14:44 ` [Bug libstdc++/16715] " pinskia at gcc dot gnu dot org
2004-09-02 18:37 ` bkoz at gcc dot gnu dot org
2004-09-02 18:58 ` cvs-commit at gcc dot gnu dot org
2004-09-08 13:37 ` cvs-commit at gcc dot gnu dot org
2004-09-09  3:46 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).