libstdc++/7264: g++3.1:ostrstream::freeze() don`t work

johnb@stl.sarov.ru johnb@stl.sarov.ru
Wed Jul 10 11:46:00 GMT 2002


>Number:         7264
>Category:       libstdc++
>Synopsis:       g++3.1:ostrstream::freeze() don`t work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 11:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     johnb@stl.sarov.ru
>Release:        g++ 3.1
>Organization:
>Environment:
Red Hat Linux release 7.2, g++ v3.1
>Description:
It is possible to change ostrstream while it is 'frozen'. See testcase.
>How-To-Repeat:
Compile and run with g++ 3.1, you`ll the 'failed' message.
>Fix:

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

I2luY2x1ZGUgPHN0cnN0cmVhbT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oaW50LCBj
aGFyICpbXSkKewogICAgICAgIGludCByZXMgPSAwOwoJc3RkOjpvc3Ryc3RyZWFtIG9zOwoKCW9z
LmZyZWV6ZSh0cnVlKTsKCQoJc3RkOjpzdHJzdHJlYW1idWYgKnAgPSBvcy5yZGJ1ZigpOwoKCWlm
IChwLT5zcHV0YygneCcpID09ICBFT0YpCgkgICBzdGQ6OmNvdXQgPDwgIjEuIFBhc3NlZFxuIjsK
ICAgICAgICBlbHNlIHsKCSAgIHN0ZDo6Y291dCA8PCAiMS4gRmFpbGVkOiBmcm96ZW4gb3N0cnN0
cmVhbSB3YXMgYWx0ZXJlZFxuIjsKCSAgIHJlcysrOwoJIH0KCSAKCW9zLmZyZWV6ZShmYWxzZSk7
CglpZiAocC0+c3B1dGMoJ3gnKSA9PSAneCcpCgkgICBzdGQ6OmNvdXQgPDwgIjIuIFBhc3NlZC5c
biI7CgoJb3MuZnJlZXplKHRydWUpOwoJCglpZiAocC0+c3B1dGMoJ3gnKSA9PSBFT0YpCgkgICBz
dGQ6OmNvdXQgPDwgIjMuIFBhc3NlZC5cbiI7CiAgICAgICAgZWxzZSB7CgkgICBzdGQ6OmNvdXQg
PDwgIjMuIEZhaWxlZDogZnJvemVuIG9zdHJzdHJlYW0gd2FzIGFsdGVyZWRcbiI7CiAgICAgICAg
ICAgcmVzKys7CgkgfQoJIAogIHJldHVybiByZXM7Cn0K



More information about the Gcc-bugs mailing list