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: andrej.mitrov...@gmail.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 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: -------