[Issue 19908] [DIP1000] union with single member should not generate cannot access pointers in `@safe` code that overlap other fields error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 12 09:38:36 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19908

Walter Bright <bugzilla at digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
The example does not compile due to mismatched { }. Remove the extra { and it
compiles without error.

Furthermore, the error message references std.typecons, but no imports are done
by the example.

Needs a reproducible example.

--


More information about the Digitalmars-d-bugs mailing list