www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 212] New: Internal compiler error: in expand, at

Date: Sat, 13 Feb 2016 14:34:05 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugzilla.gdcproject.org/
Auto-Submitted: auto-generated

http://bugzilla.gdcproject.org/show_bug.cgi?id=3D212

            Bug ID: 212
           Summary: Internal compiler error: in expand, at
                    cgraphunit.c:1942
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ibuclaw gdcproject.org

---
template hasElaborateAssign(S)
{
    enum hasElaborateAssign =3D is(typeof(S.init.opAssign(rvalueOf!S))) ||
        is(typeof(lvalueOf!S)) ;
}

T rvalueOf(T)();

T lvalueOf(T)();

///
template TypeTuple(TList...)
{
    alias TypeTuple =3D TList;
}
///
template Tuple()
{
    struct Tuple
    {
        void opAssign(R)(R)
        {
            if (hasElaborateAssign!R)
            {
            }
        }
    }
}
///
ref emplaceRef()
{
    static if (!hasElaborateAssign!(Tuple!()))
        chunk;
}
///
class TaskPool
{
    void reduce()
    {
        Tuple!() seed =3D void;
        Tuple!()[] results;
        foreach(i; TypeTuple!(0, 1))
            results[i] =3D seed;
    }
}
---

--=20
You are receiving this mail because:
You are watching all bug changes.=
Feb 13 2016