www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16080] New: Internal error: backend\cgobj.c 3406 when


          Issue ID: 16080
           Summary: Internal error: backend\cgobj.c 3406 when building
                    static library
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: sludwig outerproduct.org

Taking the following three modules:

struct A() {
    static immutable A a;

import a;

import a;
void test2() {
    A!() v = A!().a;

Running "dmd -lib b1.d b2.d" results in:
Internal error: backend\cgobj.c 3406

Changing the order or taking away either b1.d or b2.d from the command line
will make the build succeed.

May 26 2016