public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7012: istringstream cannot read integers on Solaris 2.5.1 / regression from 3.0.x
@ 2002-06-13  2:46 Martin Kahlert
  0 siblings, 0 replies; only message in thread
From: Martin Kahlert @ 2002-06-13  2:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7012
>Category:       c++
>Synopsis:       istringstream cannot read integers on Solaris 2.5.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 13 02:46:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kahlert
>Release:        3.1
>Organization:
Infineon AG
>Environment:
System: SunOS ultra 5.5.1 Generic_103640-37 sun4u sparc SUNW,Ultra-1
Architecture: sun4

	
host: sparc-sun-solaris2.5.1
build: sparc-sun-solaris2.5.1
target: sparc-sun-solaris2.5.1
configured with: ../gcc-3.1/configure --prefix=/home/software/GCC3.1 --exec-prefix=/home/software/GCC3.1/ULTRA --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-languages=c++,f77 --disable-threads --enable-shared=libstdc++
>Description:
istringstream cannot read integers on Solaris 2.5.1
>How-To-Repeat:
$ cat t.cc
#include <iostream>
#include <sstream>

using namespace std;

int main(int argc,char *arv[])
{
 int i;
 istringstream offsets("1   4   0");

 offsets >> i;
 cout << i << endl;

 return 0;
}
$ g++ -o t t.cc
$ ./t
Segmentation fault

>Fix:
Do the same on Solaris 2.7 ;-) or use gcc-3.0.x
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-13  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13  2:46 c++/7012: istringstream cannot read integers on Solaris 2.5.1 / regression from 3.0.x Martin Kahlert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).