Compilation will fail if -g or -gc is used: break.d(2): Error: Integer constant expression expected instead of "one" break.d(2): Error: Integer constant expression expected instead of "one" enum Test : string { one = "one" } void main() { }
dmd should not try to output a string enumerator type record, it is marked as incomplete anyway. Here's the patch https://github.com/rainers/dmd/commit/9d69feb17f075757c9e6874f64b201fa2f40d5b0
This question came up in D.learn the other day. Is the patch ready to be submitted as a pull request to dmd?
*** Issue 6315 has been marked as a duplicate of this issue. ***
https://github.com/D-Programming-Language/dmd/pull/257
Looks like there is an older report on this. *** This issue has been marked as a duplicate of issue 5168 ***