[Issue 23227] New: DMD compiler can't be built without RTTI

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 1 15:13:57 UTC 2022


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

          Issue ID: 23227
           Summary: DMD compiler can't be built without RTTI
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

Before the switchover from C++, it was possible to build DMD with the flags:

    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables

Since the change to D, it now only works to build with:

    -fno-exceptions -fasynchronous-unwind-tables

Likely this is the compiler making use of certain feature that result in
lowering that invoke `typeid()`. Ideally the compiler should not be doing this.

--


More information about the Digitalmars-d-bugs mailing list