This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/7989: ios::showbase doesn't work when outputting 0


>Number:         7989
>Category:       libstdc++
>Synopsis:       ios::showbase doesn't work when outputting 0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 20 09:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     lennox@cs.columbia.edu
>Release:        gcc-3.1
>Organization:
>Environment:

>Description:
When I run the attached program, I expect to see the output
0x0005
0x0000

Instead, with gcc 3.1, I get
0x0005
000000

gcc 2.95.2 is correct, so this is a regression.
>How-To-Repeat:
Compile and run the attached program.
>Fix:
None known.

As a workaround, don't use ios::showbase, and instead output the 0x explicitly.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="fmt-test.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="fmt-test.cxx"

I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCnVzaW5nIG5hbWVzcGFjZSBz
dGQ7CgppbnQgbWFpbigpCnsKICBjb3V0LnNldGYoaW9zOjpzaG93YmFzZSk7CiAgY291dC5zZXRm
KGlvczo6aW50ZXJuYWwsIGlvczo6YWRqdXN0ZmllbGQpOwogIGNvdXQuc2V0Zihpb3M6OmhleCwg
aW9zOjpiYXNlZmllbGQpOwogIGNvdXQuZmlsbCgnMCcpOwogIAogIGNvdXQgPDwgc2V0dyg2KSA8
PCA1IDw8IGVuZGw7CiAgY291dCA8PCBzZXR3KDYpIDw8IDAgPDwgZW5kbDsKCn0K


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]