------- Comment #6 from paolo dot carlini at oracle dot com  2008-09-23 16:45 
-------
Unfortunately, I think we have to "xfail" the test for targets not having
available strtold and falling back to sscanf for long double parsing. Note that
DR 23 mandates, for a reason, a behaviour equivalent to strtold, *not* sscanf,
because the latter is weaker as regards error checking, essentially. On many
targets, "6e " is successfully parsed by sscanf as 6, whereas with strtold we
can tell that not all the input is consumed and issue an error from the C++
library.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-23 16:45:43
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37624

Reply via email to