Thread overview
[Issue 20972] wrong real literals on windows
Aug 09, 2020
Walter Bright
Aug 09, 2020
Walter Bright
Aug 09, 2020
Walter Bright
Aug 11, 2020
Dlang Bot
June 24, 2020
https://issues.dlang.org/show_bug.cgi?id=20972

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--
August 09, 2020
https://issues.dlang.org/show_bug.cgi?id=20972

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
This comes down to a problem with strtold() in the Digital Mars C compiler
runtime.

https://github.com/DigitalMars/dmc/blob/master/src/core/strtold.c

I'm not sure where the problem in that function is.

--
August 09, 2020
https://issues.dlang.org/show_bug.cgi?id=20972

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=20951

--
August 09, 2020
https://issues.dlang.org/show_bug.cgi?id=20972

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=5229

--
August 11, 2020
https://issues.dlang.org/show_bug.cgi?id=20972

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@kinke updated dlang/dmd pull request #11387 "Fix Issue 20951 - Don't use excess precision when parsing single- and double-precision literals" mentioning this issue:

- Use strtold_dm() instead of DMC strtold() for parsing real literals

  I.e., only when using a DMD host compiler *and* -m32.

  This is a preparation for a fix for issue #20972 - fixing strtold_dm()
  will fix parsed real literals on Windows in general (and not only when
  linking DMD against the MSVC runtime).

https://github.com/dlang/dmd/pull/11387

--