[Issue 19574] New: DMD crashes with templated structs in two identical extern(C++, "") blocks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 11 09:22:08 UTC 2019


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

          Issue ID: 19574
           Summary: DMD crashes with templated structs in two identical
                    extern(C++, "") blocks
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: atila.neves at gmail.com

With dmd 2.084.0, the following code crashes the compiler:

--------------------
extern(C++, "ns") {
    struct Foo {
        Bar!Foo bar;
    }
}
extern(C++, "ns") {
    struct Bar(T) {}
}
--------------------

It doesn't crash if the two blocks are fused into one.

--


More information about the Digitalmars-d-bugs mailing list