[Bug 183] ICE: in complete_ctor_at_level_p, at expr.c:5775 (ctor of struct containing union fails)

via D.gnu d.gnu at puremagic.com
Wed May 6 03:09:12 PDT 2015


Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED

--- Comment #1 from Iain Buclaw <ibuclaw at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150506/75fd44a6/attachment.html>

More information about the D.gnu mailing list