[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-07 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-07 18:40 --- The behavior we are mimicing isn't printf()'s behavior. printf() doesn't print out hexadecimal signed integers as though they were unsigned integers. Intead, C's type coercion allows the signed intege

[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-07 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-07 16:03 --- The ANSI definition for %x (or %X) only covers unsigned integers. Surely then doing hex formatting on a signed integer would at the very least be undefined behavior. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-06 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-07 00:47 --- Created an attachment (id=9676) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9676&action=view) Removed unneeded #include I realized the sample test.ii output was including the header even though it

[Bug libstdc++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-06 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-06 23:55 --- Realized this should be filed against libstdc++ -- What|Removed |Added Component|c

[Bug c++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-06 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-06 23:53 --- This bug seems to exist in the version of g++4 included with RHEL4. I haven't tested against the latest release, but I'm guessing it's still there. -- What|Removed

[Bug c++/23757] iostreams hex formatting for signed integers treats than as unsigned

2005-09-06 Thread x at xman dot org
--- Additional Comments From x at xman dot org 2005-09-06 23:51 --- Created an attachment (id=9674) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9674&action=view) Preprocessed file from g++ --save-temp This is what the sample program looks like after running it thro

[Bug c++/23757] New: iostreams hex formatting for signed integers treats than as unsigned

2005-09-06 Thread x at xman dot org
as unsigned Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: x at xman dot org CC: gcc-bugs at gcc