* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
@ 2004-02-27 13:54 ` peturr02 at ru dot is
2004-02-27 13:55 ` peturr02 at ru dot is
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peturr02 at ru dot is @ 2004-02-27 13:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-27 13:54 -------
Created an attachment (id=5806)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5806&action=view)
Test case
Since C++98 defines at most 6 signed integral types, this test case checks
istreambuf_iterator::difference_type against them all to see if it is one
of those types.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
2004-02-27 13:54 ` [Bug libstdc++/14320] " peturr02 at ru dot is
@ 2004-02-27 13:55 ` peturr02 at ru dot is
2004-02-27 13:57 ` peturr02 at ru dot is
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peturr02 at ru dot is @ 2004-02-27 13:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-27 13:55 -------
Created an attachment (id=5807)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5807&action=view)
Test case
This test case uses numeric_limits to check if
istreambuf_iterator::difference_type is a signed integral type.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
2004-02-27 13:54 ` [Bug libstdc++/14320] " peturr02 at ru dot is
2004-02-27 13:55 ` peturr02 at ru dot is
@ 2004-02-27 13:57 ` peturr02 at ru dot is
2004-02-27 13:58 ` peturr02 at ru dot is
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peturr02 at ru dot is @ 2004-02-27 13:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-27 13:57 -------
Created an attachment (id=5808)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5808&action=view)
Test case
This test case checks if istreambuf_iterator::difference_type provides
operator*= (this operator is supported by all signed integral types).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (2 preceding siblings ...)
2004-02-27 13:57 ` peturr02 at ru dot is
@ 2004-02-27 13:58 ` peturr02 at ru dot is
2004-02-27 14:00 ` peturr02 at ru dot is
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peturr02 at ru dot is @ 2004-02-27 13:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-27 13:58 -------
Created an attachment (id=5809)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5809&action=view)
Test case
This test case checks if istreambuf_iterator::difference_type can be used
in standard conversions (in this case conversion to bool).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (3 preceding siblings ...)
2004-02-27 13:58 ` peturr02 at ru dot is
@ 2004-02-27 14:00 ` peturr02 at ru dot is
2004-02-27 14:52 ` pcarlini at suse dot de
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peturr02 at ru dot is @ 2004-02-27 14:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-02-27 14:00 -------
Created an attachment (id=5810)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5810&action=view)
Test case
This test case checks if istreambuf_iterator::difference_type can be
extracted from an istream using operator>>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (4 preceding siblings ...)
2004-02-27 14:00 ` peturr02 at ru dot is
@ 2004-02-27 14:52 ` pcarlini at suse dot de
2004-02-27 15:01 ` pcarlini at suse dot de
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2004-02-27 14:52 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]
------- Additional Comments From pcarlini at suse dot de 2004-02-27 14:52 -------
Hi Pétur...
Should we change streamoff itself? I think so.
Can't we basically revert for streamoff to the 3_3 situation?
Since the type is mostly implementation defined, the only tricky point seems the
constructor from fpos (which indeed, in the present form represents a "surprise"
for many people around ;), but this is only a type safety (i.e., QoI) issue.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-27 14:52:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (5 preceding siblings ...)
2004-02-27 14:52 ` pcarlini at suse dot de
@ 2004-02-27 15:01 ` pcarlini at suse dot de
2004-02-27 17:54 ` gdr at integrable-solutions dot net
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2004-02-27 15:01 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (6 preceding siblings ...)
2004-02-27 15:01 ` pcarlini at suse dot de
@ 2004-02-27 17:54 ` gdr at integrable-solutions dot net
2004-02-28 3:23 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-27 17:54 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
------- Additional Comments From gdr at integrable-solutions dot net 2004-02-27 17:54 -------
Subject: Re: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| Hi Pétur...
|
| Should we change streamoff itself? I think so.
I'm of the opposite opinion.
The notion of "integer type" as currently difined should be fixed.
-- gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (7 preceding siblings ...)
2004-02-27 17:54 ` gdr at integrable-solutions dot net
@ 2004-02-28 3:23 ` mmitchel at gcc dot gnu dot org
2004-03-01 22:11 ` pcarlini at suse dot de
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-28 3:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-28 03:23 -------
Gaby, are you saying that you think the standard is incorrect?
If so, would you a please file a DR?
If the committee is not going to change this, then we need to fix V3,
independently of whether or not we think it is the right thing or not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (8 preceding siblings ...)
2004-02-28 3:23 ` mmitchel at gcc dot gnu dot org
@ 2004-03-01 22:11 ` pcarlini at suse dot de
2004-03-03 0:22 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2004-03-01 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-01 22:11 -------
Will commit a fix for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|gdr at gcc dot gnu dot org |pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (9 preceding siblings ...)
2004-03-01 22:11 ` pcarlini at suse dot de
@ 2004-03-03 0:22 ` cvs-commit at gcc dot gnu dot org
2004-03-04 9:47 ` cvs-commit at gcc dot gnu dot org
2004-03-04 9:49 ` pcarlini at suse dot de
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-03 0:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-03 00:22 -------
Subject: Bug 14320
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-03-03 00:22:05
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: postypes.h
libstdc++-v3/testsuite/27_io/fpos/mbstate_t: 4_neg.cc
Added files:
libstdc++-v3/testsuite/27_io/fpos: 14320-1.cc 14320-2.cc
14320-3.cc 14320-4.cc
14320-5.cc
Log message:
2004-03-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14320
* include/bits/postypes.h (class streamoff): Remove, now
streamoff is just typedef a 64 bit signed integer type.
(class fpos): Tweak consistently.
* testsuite/27_io/fpos/14320-1.cc: New.
* testsuite/27_io/fpos/14320-2.cc: New.
* testsuite/27_io/fpos/14320-3.cc: New.
* testsuite/27_io/fpos/14320-4.cc: New.
* testsuite/27_io/fpos/14320-5.cc: New.
* testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2372&r2=1.2373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/postypes.h.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-2.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-3.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-4.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-5.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/mbstate_t/4_neg.cc.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (10 preceding siblings ...)
2004-03-03 0:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-04 9:47 ` cvs-commit at gcc dot gnu dot org
2004-03-04 9:49 ` pcarlini at suse dot de
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-04 9:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-04 09:47 -------
Subject: Bug 14320
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: paolo@gcc.gnu.org 2004-03-04 09:47:24
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/bits: postypes.h
libstdc++-v3/testsuite/27_io/fpos/mbstate_t: 4_neg.cc
Added files:
libstdc++-v3/testsuite/27_io/fpos: 14320-1.cc 14320-2.cc
14320-3.cc 14320-4.cc
14320-5.cc
Log message:
2004-03-04 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14320
* include/bits/postypes.h (class streamoff): Remove, now
streamoff is just typedef a 64 bit signed integer type.
(class fpos): Tweak consistently.
* testsuite/27_io/fpos/14320-1.cc: New.
* testsuite/27_io/fpos/14320-2.cc: New.
* testsuite/27_io/fpos/14320-3.cc: New.
* testsuite/27_io/fpos/14320-4.cc: New.
* testsuite/27_io/fpos/14320-5.cc: New.
* testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
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.55&r2=1.2224.2.56
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/postypes.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3.6.2&r2=1.3.6.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-2.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-3.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-4.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-5.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/fpos/mbstate_t/4_neg.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1&r2=1.1.14.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/14320] [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type
2004-02-27 13:40 [Bug libstdc++/14320] New: [3.4/3.5 Regression] istreambuf_iterator::difference_type is not a signed integral type peturr02 at ru dot is
` (11 preceding siblings ...)
2004-03-04 9:47 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-04 9:49 ` pcarlini at suse dot de
12 siblings, 0 replies; 14+ messages in thread
From: pcarlini at suse dot de @ 2004-03-04 9:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-04 09:49 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14320
^ permalink raw reply [flat|nested] 14+ messages in thread