www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11763] New: [ICE] Internal error: ../ztc/cgcs.c 351

https://d.puremagic.com/issues/show_bug.cgi?id=11763

           Summary: [ICE] Internal error: ../ztc/cgcs.c 351
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: advmail katamail.com



PST ---
Ok, here a sample app that gives Internal Error. Please notice that removing
~this() { } it seems to work.


struct Field(T) {    }

struct Value 
{
    Field!T as(T)()
    {
        Field!T result;
        return result;
    }
    ~this(){ }
}

class Indexed
{
    Value opIndex(T...)(T )
    {
        return Value();
    }

}


class MyClass
{
    void foo() 
    { 
        (new Indexed)["test"].as!int; 
    }
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 18 2013