Bug 1729 – ICE when using std.typecons.defineEnum

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-12-13T10:30:00Z
Last change time
2015-06-09T01:14:22Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
gide

Comments

Comment #0 by gide — 2007-12-13T10:30:11Z
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.