This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/83861] New: sscanf %lg conversion bug
- From: "albertmcchan at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Jan 2018 16:34:22 +0000
- Subject: [Bug debug/83861] New: sscanf %lg conversion bug
- Auto-submitted: auto-generated
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