dmd/compiler/test/runnable/test20520.d

13 lines
225 B
D

// https://issues.dlang.org/show_bug.cgi?id=20520
class C {}
enum Foo {
Bar = new C()
}
void main()
{
//pragma(msg, typeid(Foo.Bar)); // Works fine: typeid(C())
auto t = typeid(Foo.Bar); // Segfault here
}