4 fail_compilation/test15989.d(39): Error: variable `test15989.main.ctRegex` : Unable to initialize enum with class or pointer to struct. Use static const variable instead.
5 fail_compilation/test15989.d(48): Error: variable `test15989.test.c` : Unable to initialize enum with class or pointer to struct. Use static const variable instead.
6 fail_compilation/test15989.d(49): Error: cannot use non-constant CTFE pointer in an initializer `new int(3)`
10 // https://issues.dlang.org/show_bug.cgi?id=15989
12 import core
.stdc
.stdio
;
18 class ShiftOr
: Kickstart
22 printf("i = %d\n", i
);
34 return Regex(new ShiftOr());
39 enum ctRegex
= regex();