[Issue 17582] New: Applying const to struct declaration should make the struct type const
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 1 23:50:47 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17582
Issue ID: 17582
Summary: Applying const to struct declaration should make the
struct type const
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
The following should compile:
const struct S {
int x;
}
static assert(is(S == const(S)));
--
More information about the Digitalmars-d-bugs
mailing list