c++/3014: gcc3: cin problems with solaris 5.8 and >> extractors

wavexx@users.sf.net wavexx@users.sf.net
Thu May 31 10:16:00 GMT 2001


>Number:         3014
>Category:       c++
>Synopsis:       gcc3: cin problems with solaris 5.8 and >> extractors
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 31 10:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wave++
>Release:        gcc version 3.0 20010529 (prerelease)
>Organization:
>Environment:
System: Solaris 5.9 x86
Architecture: i686
host: i386-pc-solaris2.8
build: i386-pc-solaris2.8
target: i386-pc-solaris2.8
Configured with: ../gcc/configure --prefix=/opt/gcc-cvs --enable-shared --enable-threads --enable-languages=c++,f77,objc --disable-libgcj
>Description:
When using cin extractors (eg: cin >> astring) I need to
type AT LEAST return 2 times, or insert an EOF (^D) to
effectively stop parsing input.
>How-To-Repeat:
Compile the example:
g++ -o gcc3_trigger gcc3_trigger.cpp
run it:
./gcc3_trigger

On solaris 5.8 I need to type return twice to end the program.
>Fix:
-
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gcc3_trigger.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc3_trigger.cpp"

I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgc3RkOjpjaW47CnVz
aW5nIHN0ZDo6c3RyaW5nOwoKaW50IG1haW4oKQp7CiAgc3RyaW5nIGJ1ZjsKICBjaW4gPj4gYnVm
Owp9Cg==



More information about the Gcc-bugs mailing list