[Bug 242] New: [ICE] (const_hash_1) varasm.c:2912: Segmentation fault

via D.gnu d.gnu at puremagic.com
Sun Oct 2 10:03:27 PDT 2016


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

            Bug ID: 242
           Summary: [ICE] (const_hash_1) varasm.c:2912: Segmentation fault
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: ibuclaw at gdcproject.org

Test case.
---
struct Thing
{
    enum Instance = Thing();
    void iter() { }
}

void test()
{
    return Thing.Instance.iter;
}
---

Does not happen if the return statement is removed.
---
struct Thing
{
    enum Instance = Thing();
    void iter() { }
}
void test()
{
    Thing.Instance.iter;
}
---

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


More information about the D.gnu mailing list