This is invalid code is not rejected anymore in latest ~master --- struct Content{ubyte parts;} void main(){ enum Content content = {}; content.parts = 2; } ---
Regression caused by https://github.com/dlang/dmd/pull/9505
@Basile-z created dlang/dmd pull request #10115 "fix issue 20011, fix issue 17828 - crash or accept write operation on members of manifest constant structs" fixing this issue: - fix issue 20011, fix issue 17828 - crash or accept write operation on members of manifest constant structs https://github.com/dlang/dmd/pull/10115
dlang/dmd pull request #10115 "fix issue 20011, 17828 - crash or accept write operation on members of manifest constant structs" was merged into stable: - 44469ba0c915f2cc9f017f01a8a738219a130c51 by Basile Burg: fix issue 20011, 17828 - crash or accept write operation on members of manifest constant structs https://github.com/dlang/dmd/pull/10115