[Bug 307] internal compiler error: Segmentation fault

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue Sep 4 23:06:33 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=307

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Actually, there's more.

---
void test307()
{
    apply307(1, 2, 3);
}

void apply307(T...)(T ts)
{
tloop:
    foreach (t; ts)
    {
        switch (t)
        {
            continue tloop;
            default:
        }
    }
tloop2:
    foreach (t; ts)
    {
        switch (t)
        {
            break tloop;
            default:
        }
    }
tloop3:
    foreach (t; ts)
    {
        switch (t)
        {
            continue;
            default:
        }
    }
tloop4:
    foreach (t; ts)
    {
        switch (t)
        {
            break;
            default:
        }
    }
}
---

I think I have a fix, though will try it out later...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list