public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
@ 2003-11-10 8:13 ` paolo at gcc dot gnu dot org
2003-11-10 9:16 ` paolo at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-10 8:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-10 08:13:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints
@ 2003-11-10 8:13 paolo at gcc dot gnu dot org
2003-11-10 8:13 ` [Bug libstdc++/12988] " paolo at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-10 8:13 UTC (permalink / raw)
To: gcc-bugs
Consider this small testcase from Martin Sebor:
#include <iostream>
#include <locale>
struct Ctype: std::ctype<char>
{
char do_widen(char c) const {
return 'A' + c % 26;
}
};
int main()
{
std::locale loc(std::locale::classic(), new Ctype);
loc = std::cout.imbue(loc);
std::cout << 123 << '\n'; // (double)123
std::cout.imbue(loc);
}
It doesn't print ABC as expected but instead 123, both for integer
and float types due to serious problems in _M_insert_float and
_M_insert_int:
1- In _M_insert_int Stage2 is *completely* missing!
2- In _M_insert_float Stage2 uses the range version of widen instead
of the single char version, prescribed by the standard.
Sigh!
--
Summary: Serious problems with 22.2.2.2.2, Stage2, both floats
and ints
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: paolo at gcc dot gnu dot org
ReportedBy: paolo at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
2003-11-10 8:13 ` [Bug libstdc++/12988] " paolo at gcc dot gnu dot org
@ 2003-11-10 9:16 ` paolo at gcc dot gnu dot org
2003-11-10 10:18 ` paolo at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-10 9:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-10 09:16 -------
About 1- above, only the widen part is missing, not the grouping: this report is
all about widen.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
2003-11-10 8:13 ` [Bug libstdc++/12988] " paolo at gcc dot gnu dot org
2003-11-10 9:16 ` paolo at gcc dot gnu dot org
@ 2003-11-10 10:18 ` paolo at gcc dot gnu dot org
2003-11-12 14:36 ` paolo at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-10 10:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-10 10:18 -------
... and, well, the expected output is XYZ *not* ABC, sorry.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-11-10 10:18 ` paolo at gcc dot gnu dot org
@ 2003-11-12 14:36 ` paolo at gcc dot gnu dot org
2003-11-13 9:39 ` paolo at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-12 14:36 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2003-11-10 08:13:25 |2003-11-12 14:36:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-11-12 14:36 ` paolo at gcc dot gnu dot org
@ 2003-11-13 9:39 ` paolo at gcc dot gnu dot org
2003-11-14 12:14 ` paolo at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-13 9:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-13 09:39 -------
The analysis in point 1- is wrong: see
http://gcc.gnu.org/ml/libstdc++/2003-11/msg00106.html
for something more meaningful!
Paolo.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|paolo at gcc dot gnu dot org|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-11-13 9:39 ` paolo at gcc dot gnu dot org
@ 2003-11-14 12:14 ` paolo at gcc dot gnu dot org
2003-11-17 8:44 ` paolo at gcc dot gnu dot org
2003-11-26 12:45 ` paolo at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-14 12:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-11-14 12:14 ` paolo at gcc dot gnu dot org
@ 2003-11-17 8:44 ` paolo at gcc dot gnu dot org
2003-11-26 12:45 ` paolo at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-17 8:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-17 08:44 -------
So... the real issue is just that the testcase is not complete. But the standard
needs a clarification here! Suspended for now, and added a couple of well formed
testcases:
http://gcc.gnu.org/ml/gcc-patches/2003-11/msg01289.html
Paolo.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12988] Serious problems with 22.2.2.2.2, Stage2, both floats and ints
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-11-17 8:44 ` paolo at gcc dot gnu dot org
@ 2003-11-26 12:45 ` paolo at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-11-26 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-26 12:45 -------
I think we can safely close it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12988
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2003-11-26 12:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-10 8:13 [Bug libstdc++/12988] New: Serious problems with 22.2.2.2.2, Stage2, both floats and ints paolo at gcc dot gnu dot org
2003-11-10 8:13 ` [Bug libstdc++/12988] " paolo at gcc dot gnu dot org
2003-11-10 9:16 ` paolo at gcc dot gnu dot org
2003-11-10 10:18 ` paolo at gcc dot gnu dot org
2003-11-12 14:36 ` paolo at gcc dot gnu dot org
2003-11-13 9:39 ` paolo at gcc dot gnu dot org
2003-11-14 12:14 ` paolo at gcc dot gnu dot org
2003-11-17 8:44 ` paolo at gcc dot gnu dot org
2003-11-26 12:45 ` paolo 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).