Thread overview
[Issue 21772] [REG2.069] Consecutive different-signed double.nans in an array literal take the sign of the previous nan (same for float and real)
[Issue 21772] [REG2.069] Consecutive different-signed `double.nan`s in an array literal take the sign of the previous nan (same for `float` and `real`)
Mar 27, 2021
Nathan S.
Mar 27, 2021
Nathan S.
Dec 20, 2022
Walter Bright
Dec 20, 2022
Dlang Bot
Jan 13, 2023
Dlang Bot
March 27, 2021
https://issues.dlang.org/show_bug.cgi?id=21772

Nathan S. <n8sh.secondary@hotmail.com> changed:

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

--
March 27, 2021
https://issues.dlang.org/show_bug.cgi?id=21772

--- Comment #1 from Nathan S. <n8sh.secondary@hotmail.com> ---
If you go all the way back to 2.068.2 `std.stdio.writeln` doesn't print the sign of nan by default but you can verify with `std.math.signbit` that the nans have different signs.

--
December 20, 2022
https://issues.dlang.org/show_bug.cgi?id=21772

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|[REG2.069] Consecutive      |[REG2.069] Consecutive
                   |different-signed            |different-signed
                   |`double.nan`s in an array   |double.nans in an array
                   |literal take the sign of    |literal take the sign of
                   |the previous nan (same for  |the previous nan (same for
                   |`float` and `real`)         |float and real)

--
December 20, 2022
https://issues.dlang.org/show_bug.cgi?id=21772

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14727 "fix Issue 21772 - [REG2.069] Consecutive different-signed double.nans…" fixing this issue:

- fix Issue 21772 - [REG2.069] Consecutive different-signed double.nans in an array literal take the sign of the previous nan (same for float and real)

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

--
January 13, 2023
https://issues.dlang.org/show_bug.cgi?id=21772

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14727 "fix Issue 21772 - [REG2.069] Consecutive different-signed double.nans…" was merged into master:

- ded5508a8c1532f0522bf171277018ef7f64a44d by Walter Bright:
  fix Issue 21772 - [REG2.069] Consecutive different-signed double.nans in an
array literal take the sign of the previous nan (same for float and real)

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

--