The following code will only fail to compile for 64-bit windows. It works fine for 32-bit windows. This code used to work in dmd 2.063.2 and dmd 2.062
struct Atom
{
union
{
int i;
struct {
Atom* first, rest;
}
struct {
uint localIndex;
uint literalIndex;
}
}
}
void main(string[] args)
{
Atom a;
}
Comment #1 by k.hara.pg — 2013-10-17T18:57:00Z
Repro case in both 32/64 bit platforms:
struct Atom
{
union
{
int i;
struct
{
ulong first, rest;
}
struct
{
uint localIndex;
uint literalIndex;
}
}
}
void main()
{
Atom a;
}