www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13831] New: DMD crash

https://issues.dlang.org/show_bug.cgi?id=13831

          Issue ID: 13831
           Summary: DMD crash
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: mrsmith33 yandex.ru

Crashes both on windows and linux, both m32 and m64.

Tested with 2.066, 2.066.1, master

---
struct Vector()
{
}

struct ChunkCoord
{
    union
    {
        struct
        {
            short x;
        }
        Vector!() vector;
    }
}

struct Chunk
{
    this(ChunkCoord)
    {
        coord = coord;
    }

    ChunkCoord coord;

    static Chunk* unknownChunk = new Chunk(ChunkCoord());
}
---

--
Dec 07 2014