Bug 20011 – [REG] modification of member of a manifest constant that's also a struct is allowed

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-29T18:06:42Z
Last change time
2019-07-07T08:14:35Z
Keywords
accepts-invalid, pull
Assigned to
No Owner
Creator
Basile-z
See also
https://issues.dlang.org/show_bug.cgi?id=17828, https://issues.dlang.org/show_bug.cgi?id=19754

Comments

Comment #0 by b2.temp — 2019-06-29T18:06:42Z
This is invalid code is not rejected anymore in latest ~master --- struct Content{ubyte parts;} void main(){ enum Content content = {}; content.parts = 2; } ---
Comment #1 by bugzilla — 2019-06-29T22:34:14Z
Comment #2 by dlang-bot — 2019-06-30T13:59:29Z
@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
Comment #3 by dlang-bot — 2019-07-07T08:14:35Z
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