[Issue 11132] Odd diagnostic with C-style struct initializer when union field is present

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 5 00:36:14 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11132


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2013-10-05 00:36:13 PDT ---
(In reply to comment #1)
> Speaking of which, what is a union field initialized to in D?

It's supposed to be set to the .init of its first field, and any remaining
bytes set to 0.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list