December 23, 2021
https://issues.dlang.org/show_bug.cgi?id=22622

--- Comment #1 from duser@airmail.cc ---
importing a C module before core.stdc.stdio also triggers the bug:

---
% echo '// empty' >empty.c
% echo 'import empty; import core.stdc.stdio; void main(){}' >main.d
% dmd main.d
---

if the import order is swapped, the error disappears

--
March 06, 2022
https://issues.dlang.org/show_bug.cgi?id=22622

duser@neet.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |duser@neet.fi
         Resolution|---                         |FIXED

--- Comment #2 from duser@neet.fi ---
works with v2.099.0-beta.1

digger bisect says this was fixed by https://github.com/dlang/dmd/pull/13532 "ImportC: start importing __builtins.d"

--