digitalmars.D.bugs - [Issue 20011] New: [REG] modification of member of a manifest
- d-bugmail puremagic.com (24/24) Jun 29 2019 https://issues.dlang.org/show_bug.cgi?id=20011
https://issues.dlang.org/show_bug.cgi?id=20011 Issue ID: 20011 Summary: [REG] modification of member of a manifest constant that's also a struct is allowed Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: b2.temp gmx.com This is invalid code is not rejected anymore in latest ~master --- struct Content{ubyte parts;} void main(){ enum Content content = {}; content.parts = 2; } --- --
Jun 29 2019