libstdc++/2634: istrstream state not correct upon failed conversion
dirk.steenpass@pharma.novartis.com
dirk.steenpass@pharma.novartis.com
Wed Apr 25 05:06:00 GMT 2001
>Number: 2634
>Category: libstdc++
>Synopsis: istrstream state not correct upon failed conversion
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 25 05:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Dirk Steenpass
>Release: GNU CPP version 2.95.3 20010315 (release) (i386 Linux/ELF)
>Organization:
>Environment:
(i386 Linux/ELF) i686-pc-linux-gnu
gcc was build with --enable-shared --enable-threads
>Description:
The state of an istrstream is not set to fail() or bad()
if the conversion from string to double fails. This is true
only for strings starting with an ('i' || 'I') or a
('n' || 'N').
Try out the stupid test prog, it's self explanatory.
>How-To-Repeat:
The test prog tries to convert all command line arguments
to double.
Use for example:
>Fix:
???
>Release-Note:
>Audit-Trail:
>Unformatted:
>iotest a b c d e f g h i j k l m n o p q r s t u v w x y z
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="iotest.ii.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="iotest.ii.gz"
More information about the Gcc-bugs
mailing list