(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
runnable/
test20520.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
}