Bug 17159 – Behavior of unions at compile time is not documented
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-02-08T14:47:18Z
Last change time
2017-08-16T13:23:43Z
Keywords
CTFE, pull, spec
Assigned to
No Owner
Creator
anonymous4
Comments
Comment #0 by dfj1esp02 — 2017-02-08T14:47:18Z
E.g. access to overlapped fields is not allowed.
Comment #1 by meapineapple — 2017-02-08T17:48:56Z
From IRC:
<uplink|dmd> lost my login
<uplink|dmd> can someone answer this http://forum.dlang.org/thread/[email protected] and say that this has been the case for ages
<uplink|dmd> and that newCTFE will eventually fix it if it is _really_ desired I'd say it catches bugs