[Issue 20011] New: [REG] modification of member of a manifest constant that's also a struct is allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 29 18:06:42 UTC 2019
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 at puremagic.com
Reporter: b2.temp at 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;
}
---
--
More information about the Digitalmars-d-bugs
mailing list