public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/23875] New: operator<<(short) should not call operator<<(long), etc.
@ 2005-09-14 0:52 pcarlini at suse dot de
2005-09-14 0:53 ` [Bug libstdc++/23875] " pcarlini at suse dot de
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pcarlini at suse dot de @ 2005-09-14 0:52 UTC (permalink / raw)
To: gcc-bugs
DR117 is not implemented in the same way of DR118: operator<<(short) calls
operator<<(long), operator<<(unsigned short) calls operator<<(unsigned long),
operator<<(int) calls operator<<(long), etc... I think the way we implemented
DR118 is better (i.e., following the letter of the resolution, without calling
other inserters/extractors), even if it adds more code for now (*), because
allows the user to specialize, say, only operator<<(long), without affecting
the other inserters.
(*) Then, another project would clean-up and commonize the code in those bodies
to, say, _M_insert and _M_extract.
--
Summary: operator<<(short) should not call operator<<(long), etc.
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pcarlini at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23875
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/23875] operator<<(short) should not call operator<<(long), etc.
2005-09-14 0:52 [Bug libstdc++/23875] New: operator<<(short) should not call operator<<(long), etc pcarlini at suse dot de
@ 2005-09-14 0:53 ` pcarlini at suse dot de
2005-09-15 17:27 ` cvs-commit at gcc dot gnu dot org
2005-09-15 17:28 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: pcarlini at suse dot de @ 2005-09-14 0:53 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-14 00:53:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23875
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/23875] operator<<(short) should not call operator<<(long), etc.
2005-09-14 0:52 [Bug libstdc++/23875] New: operator<<(short) should not call operator<<(long), etc pcarlini at suse dot de
2005-09-14 0:53 ` [Bug libstdc++/23875] " pcarlini at suse dot de
@ 2005-09-15 17:27 ` cvs-commit at gcc dot gnu dot org
2005-09-15 17:28 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-15 17:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-15 17:27 -------
Subject: Bug 23875
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2005-09-15 17:27:24
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: ostream.tcc
libstdc++-v3/include/std: std_ostream.h
Added files:
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/pod:
23875.cc
Log message:
2005-09-15 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/23875
* include/std/std_ostream.h (operator<<(short), operator<<(unsigned
short), operator<<(int), operator<<(unsigned int), operator<<(float)):
Don't call operator<<(long), operator<<(unsigned long), or
operator<<(double), do the work mandated by the resolution of DR117...
* include/bits/ostream.tcc (operator<<(short), operator<<(unsigned
short), operator<<(int), operator<<(unsigned int), operator<<(float)):
... here.
* testsuite/27_io/basic_ostream/inserters_arithmetic/pod/23875.cc: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.3106&r2=1.3107
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/ostream.tcc.diff?cvsroot=gcc&r1=1.56&r2=1.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/std/std_ostream.h.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/pod/23875.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23875
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/23875] operator<<(short) should not call operator<<(long), etc.
2005-09-14 0:52 [Bug libstdc++/23875] New: operator<<(short) should not call operator<<(long), etc pcarlini at suse dot de
2005-09-14 0:53 ` [Bug libstdc++/23875] " pcarlini at suse dot de
2005-09-15 17:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-15 17:28 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: pcarlini at suse dot de @ 2005-09-15 17:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-09-15 17:28 -------
Fixed for 4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23875
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-15 17:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-14 0:52 [Bug libstdc++/23875] New: operator<<(short) should not call operator<<(long), etc pcarlini at suse dot de
2005-09-14 0:53 ` [Bug libstdc++/23875] " pcarlini at suse dot de
2005-09-15 17:27 ` cvs-commit at gcc dot gnu dot org
2005-09-15 17:28 ` pcarlini at suse dot de
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).