[Issue 24356] New: goto case label not correctly generated by CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 25 21:51:39 UTC 2024
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 at puremagic.com
Reporter: sturtivant at 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.
--
More information about the Digitalmars-d-bugs
mailing list