Originally reported by "Les De Ridder":
I've been able to reduce it to this:
void f() { import std.file : exists; exists(""); }
(or void f() { import std; exists(""); })
Create two files (a.d and b.d) with this code.
Build with: dmd.exe -m32 -inline -O a.d b.d
Removing any of the flags allows the compilation to proceed.
Comment #1 by dlang-bot — 2022-12-27T23:09:49Z
@maxhaton created dlang/dmd pull request #14746 "Fix Issue 23585 - Add bp relative symbols (frame-relative, see ntreh.…" fixing this issue:
- Fix Issue 23585 - Add bp relative symbols (frame-relative, see ntreh.d for apparently the only use) to local symbols during inlining.
https://github.com/dlang/dmd/pull/14746
Comment #2 by ibuclaw — 2022-12-30T15:56:53Z
I think this is a duplicate of issue 23499.
*** This issue has been marked as a duplicate of issue 23499 ***