[Issue 13667] New: ICE with inout and alias this

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 31 06:43:52 PDT 2014


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

          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 at puremagic.com
          Reporter: code at 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;
CODE

dmd -c bug

--


More information about the Digitalmars-d-bugs mailing list