Bug 23585 – Win32 inliner crash

Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-12-27T22:24:24Z
Last change time
2022-12-30T15:56:53Z
Keywords
pull
Assigned to
No Owner
Creator
mhh

Comments

Comment #0 by maxhaton — 2022-12-27T22:24:24Z
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 ***