www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16233] New: ICE on wrong code


          Issue ID: 16233
           Summary: ICE on wrong code
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

This code (reduced from a larger codebase) causes dmd to abort with "null

enum valueConvertible(T1, T2) = blah;

struct Checked(T, Hook)
    bool opEquals(U)(Checked!(U, Hook) rhs)
        alias R = typeof(payload + rhs.payload);
        static if (valueConvertible!(T, R))
        return false;

    Checked!(Checked!(int, void), void) x1;

Jul 03 2016