digitalmars.D.bugs - [Issue 24356] New: goto case label not correctly generated by CTFE
- d-bugmail puremagic.com (21/21) Jan 25 https://issues.dlang.org/show_bug.cgi?id=24356
https://issues.dlang.org/show_bug.cgi?id=24356 Issue ID: 24356 Summary: goto case label not correctly generated by CTFE Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: sturtivant gmail.com Created attachment 1903 --> https://issues.dlang.org/attachment.cgi?id=1903&action=edit Goto case CTFE compilation error If the label in a `goto case` is written using CTFE then the compiler claims the label does not exist. If the CTFE call to make the label is instead used to define an enum, and the enum used as the label, everything now works as expected. --
Jan 25