www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13667] New: ICE with inout and alias this


          Issue ID: 13667
           Summary: ICE with inout and alias this
           Product: D
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
struct Array(T)
    Array!(T) impConv() const { return *cast(typeof(return)*)this; }
    alias impConv this;

    struct Range
        Array _arr;
        void front() inout { _arr[]; }

alias AI = Array!int;

dmd -c bug

Oct 31 2014