www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16643] New: CTFE internal error with null


          Issue ID: 16643
           Summary: CTFE internal error with null
           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

null+null and null-null trigger the error:

echo "enum a = null+null;" > d.d && dmd d.d -main
echo "enum a = null-null;" > d.d && dmd d.d -main

 Error: CTFE internal error: non-constant value null
Oct 28 2016