[Issue 11763] New: [ICE] Internal error: ../ztc/cgcs.c 351

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 18 05:54:13 PST 2013


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 at puremagic.com
        ReportedBy: advmail at katamail.com


--- Comment #0 from Andrea Fontana <advmail at katamail.com> 2013-12-18 05:54:10 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: -------


More information about the Digitalmars-d-bugs mailing list