http://d.puremagic.com/issues/show_bug.cgi?id=11088
Summary: Diagnostics for enum member overflows should improve
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic, pull
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-09-21
12:18:48 PDT ---
-----
enum E {
A = int.max,
B
}
-----
test.d(3): Error: enum member test.E.B overflow of enum value cast(E)2147483647
It should be:
test.d(3): Error: enum member test.E.B initialization with (E.A + 1) causes
overflow for type 'int'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------