This is the mail archive of the gcc-bugs@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++/5744: ios::setw doesn't affect strings



>Number:         5744
>Category:       libstdc++
>Synopsis:       ios::setw doesn't affect strings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 21 06:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     dominik.strasser@mchp.siemens.de
>Release:        gcc 2.95.3
>Organization:
>Environment:

>Description:
In the attached program, cout.setw doesn't affect printing 
strings. Printing char* does work however.
>How-To-Repeat:
Compile and run.
The problem is fixed in gcc 3.x
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="setw.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="setw.C"

I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPHN0cmluZz4K
CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKCXN0cmluZyBhID0gIldvcmxkIjsK
Cgljb3V0LmZsYWdzKGlvczo6cmlnaHQpOwoJY291dCA8PCBzZXR3KDIwKSA8PCBhIDw8IGVuZGw7
Cgljb3V0IDw8IHNldHcoMjApIDw8IGEuY19zdHIoKSA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0KCg==


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