www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23585] New: Win32 inliner crash

https://issues.dlang.org/show_bug.cgi?id=23585

          Issue ID: 23585
           Summary: Win32 inliner crash
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxhaton gmail.com

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.

--
Dec 27 2022