Compiler rejects this code so the implicit conversion from const(R) to R breaks mutable field 'stripped' const-correctness. struct R { union { const(Object) original; Object stripped; } } void main() { const R cr; R mr = cr; // Error: cannot implicitly convert expression // (cr) of type const(R) to R } However, I think this is a little restricted behavior. Because qualified and overlapped field is D-specific feature. It's mostly used for bypassing the restriction of const qualifier. Therefore, in many case it would be protected by private access specifier. The feature is necessary in order to allow const(Rebindable) to Rebindable conversion.
https://github.com/D-Programming-Language/dmd/pull/2665
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0f00e6b6f29707f7a18b6e559aecf6bca50fca90 fix Issue 11257 - Allow whole implicit conversion if one or more overlapped field could.
I can't agree with this. A cast should be used to break out of const, and should not be allowed in @safe code.