Thread overview
[Bug 183] ICE: in complete_ctor_at_level_p, at expr.c:5775 (ctor of struct containing union fails)
May 06, 2015
Iain Buclaw
Sep 27, 2015
Iain Buclaw
May 22, 2016
Iain Buclaw
May 22, 2016
Iain Buclaw
May 06, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=183

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
It appears that anonymous structs are not emitted at all.  Meaning that we have the following initialiser:

union { NAN, NAN, NAN }

When we are instead expecting:

union { { NAN, NAN, NAN } }

This is because unions can only have one value to initialise them, not three.

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


September 27, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=183

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Upstream PR raised:

https://github.com/D-Programming-Language/dmd/pull/5122

Doesn't fix the problem, but at least ensures that the code generator has all information it needs to do the right thing.

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


May 22, 2016
http://bugzilla.gdcproject.org/show_bug.cgi?id=183

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Iain Buclaw from comment #2)
> Upstream PR raised:
> 
> https://github.com/D-Programming-Language/dmd/pull/5122
> 
> Doesn't fix the problem, but at least ensures that the code generator has all information it needs to do the right thing.

https://github.com/D-Programming-GDC/GDC/pull/213

-- 
You are receiving this mail because:
You are watching all bug changes.
May 22, 2016
http://bugzilla.gdcproject.org/show_bug.cgi?id=183

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

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