[Bug debug/83861] New: sscanf %lg conversion bug
albertmcchan at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 15 16:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83861
Bug ID: 83861
Summary: sscanf %lg conversion bug
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: albertmcchan at yahoo dot com
Target Milestone: ---
double x;
sscanf("6.2e-323", "%lg", &x);
x were set to 6e-323, which was 1 ULP short
correct value should be 6.4e-323
this bug failed even with the latest gcc 7.1 that comes with
Strawberry Perl 5.26.1.1 32-bits for Windows
More information about the Gcc-bugs
mailing list