www.digitalmars.com         C & C++   DMDScript  

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

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 gdcproject.org
          Reporter: ibuclaw 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.
Oct 02 2016