The following code causes the compiler to segmenation fault. This happends on Windows and Linux of DMD version 2.008.
test.d
------
import std.typecons;
// mixin(defineEnum!("Direction", "Up", "Down")); // OK
// mixin(defineEnum!("Direction", "Up", 1, "Down")); // OK
mixin(defineEnum!("Direction", "Up", 1, "Down", 2)); // Segmentation fault
void main() {
}
Comment #1 by gide — 2008-01-05T10:34:48Z
ICE is fixed in 2.009, but I will raise a new ticket for the issues in std.typecons.defineEnum.