[Issue 22045] Assignment of pointers in union should be @safe, only pointers access are @system
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jun 26 12:20:04 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22045
Nick Treleaven <nick at geany.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org
--- Comment #3 from Nick Treleaven <nick at geany.org> ---
> Either way, the message given by the compiler is wrong
Not sure if it changed, but the message now is:
safesetunion.d(8): Error: field `Foo.b` cannot access pointers in `@safe` code
that overlap other fields
--
    
    
More information about the Digitalmars-d-bugs
mailing list