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: [email protected]
Reporter: [email protected]
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.
--