www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19548] New: [REG 2.080] Missing reference to


          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 puremagic.com
          Reporter: Marco.Leise 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.

Jan 03