[Issue 6315] New: Compiling typed named enum with -g switch yelds an error.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 14 06:01:09 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6315
Summary: Compiling typed named enum with -g switch yelds an
error.
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kajetan.rzepecki+puremagic at gmail.com
--- Comment #0 from Kajtek <kajetan.rzepecki+puremagic at gmail.com> 2011-07-14 05:55:54 PDT ---
Tested with DMD 2.054 on Win32. Didn't happen in DMD 2.053.
enum : string { //OK
A = "A",
}
enum Enum : string {
B = "B", //Error: Integer constant expression expected instead
of "B".
}
void main() {}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list