[Issue 14570] New: Compiler crash relating to extern(C++)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 10 22:28:06 PDT 2015


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

          Issue ID: 14570
           Summary: Compiler crash relating to extern(C++)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

extern(C++):
struct X
{
  __gshared immutable(int)[4] s;
}


Emits the error:

2>Error: Internal Compiler Error: shared or immutable types can not be mapped
to C++ (immutable(int[5]))
2>Assertion failure: '0' on line 947 in file 'cppmangle.c'


And then crashes with popup "abnormal program termination"

Error is reasonable, but shouldn't crash.

--


More information about the Digitalmars-d-bugs mailing list