https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70654
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-04-14 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- We check for overflow (by comparing to plus or minus HUGE_VAL) but not underflow. To check for underflow we need to save and restore errno to see if it is set to ERANGE by the call to strto{f,d,ld}_l.