https://issues.dlang.org/show_bug.cgi?id=16248
Issue ID: 16248
Summary: nested const functions can mutate the aggregate
members
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
This compiles without error
struct Foo
{
int i;
void bar()
{
void foo() const /*immutable as well*/
{
i = 1;
}
foo;
}
}
--
