[Issue 11314] New: inline ice with tuple assignment and if/else again

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 21 06:33:45 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11314

           Summary: inline ice with tuple assignment and if/else again
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: youxkei at gmail.com


--- Comment #0 from Hisayuki Mima <youxkei at gmail.com> 2013-10-21 22:33:43 JST ---
This bug may be related to the Issue 11223

-----
module bug;
struct Tuple(T...)
{
    T values;

    void opAssign(typeof(this) rhs)
    {
        if(0)
            values[] = rhs.values[];
        else
            assert(0);
    }
}

struct S{}

void main()
{
    Tuple!S t;
    t = Tuple!S(S.init);
}
-----
$ dmd -inline bug.d
dmd: glue.c:1281: virtual unsigned int Type::totym(): Assertion `0' failed.
-----

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


More information about the Digitalmars-d-bugs mailing list