Thread overview
[Issue 23411] ImportC: undefined identifier __builtin_nanf
Dec 17, 2022
Iain Buclaw
Dec 17, 2023
Dlang Bot
Dec 19, 2023
Dlang Bot
October 14, 2022
https://issues.dlang.org/show_bug.cgi?id=23411

--- Comment #1 from dave287091@gmail.com ---
Note that adding:

    alias __builtin_nan = imported!"core.stdc.math".nan;
    alias __builtin_nanf = imported!"core.stdc.math".nanf;
    alias __builtin_nanl = imported!"core.stdc.math".nanl;

to __builtins.di does *not* solve the issue as then it cannot be used as a static initializer:

Error: `nanf` cannot be interpreted at compile time, because it has no available source code.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2023
https://issues.dlang.org/show_bug.cgi?id=23411

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 #15918 "fix Issue 23411 - ImportC: undefined identifier __builtin_nanf" fixing this issue:

- fix Issue 23411 - ImportC: undefined identifier __builtin_nanf

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

--
December 19, 2023
https://issues.dlang.org/show_bug.cgi?id=23411

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 #15918 "fix Issue 23411 - ImportC: undefined identifier __builtin_nanf" was merged into master:

- c714f745d546e68638eaccc0db2118bdad1dc484 by Walter Bright:
  fix Issue 23411 - ImportC: undefined identifier __builtin_nanf

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

--