www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16645] New: 3 errors messages instead of 1 after CTFE divide

https://issues.dlang.org/show_bug.cgi?id=16645

          Issue ID: 16645
           Summary: 3 errors messages instead of 1 after CTFE divide by 0
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

echo "enum a = 0/0;" > d.d && dmd d.d -main

prints:

 d.d(1): Error: divide by 0
 d.d(1): Error: divide by 0
 d.d(1): Error: divide by 0
--
Oct 28 2016