January 11, 2019 [Issue 19574] New: DMD crashes with templated structs in two identical extern(C++, "") blocks | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: atila.neves@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. -- |
Copyright © 1999-2021 by the D Language Foundation