[Issue 19548] New: [REG 2.080] Missing reference to _D6object__T14__switch_errorZQrFNaNbNiNfAyamZv

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 4 05:03:48 UTC 2019


          Issue ID: 19548
           Summary: [REG 2.080] Missing reference to
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: link-failure
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: Marco.Leise at gmx.de

Since 2.080 the following code, compiled in debug mode, doesn't link anymore:

        import std.stdio, std.bitmanip;

        void main() {
                int i;
                final switch (i) { case 0: {} }

The output from the linker (bfd or gold) is:

function _Dmain: error: undefined reference to

Compiling the same program with -allinst, -release or -O works.


More information about the Digitalmars-d-bugs mailing list