June 29, 2019 [Issue 20011] New: [REG] modification of member of a manifest constant that's also a struct is allowed | ||||
|---|---|---|---|---|
| ||||
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; } --- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply