https://issues.dlang.org/show_bug.cgi?id=13729
--- Comment #6 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/3a9a56bce0d595fbe538946321e2fb8692711386
fix Issue 13729 - One not
https://issues.dlang.org/show_bug.cgi?id=13729
--- Comment #3 from bearophile_h...@eml.cc ---
Now this code:
int x;
void main() pure {
static void foo() {
x++;
}
foo();
}
Gives:
test.d(4,9): Error: pure function 'D main' cannot access mutable static data
'x'
I think a
9rnsr/fix13729
[REG2.067a] Issue 13729 - One not detected case of not purity
Conflicts:
src/expression.c
--
https://issues.dlang.org/show_bug.cgi?id=13729
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
not detected case of not purity
https://github.com/D-Programming-Language/dmd/commit/8b3bd7381a82dac630f5a8374618caf5a3b8ae98
Merge pull request #4447 from 9rnsr/fix13729
[REG2.067a] Issue 13729 - One not detected case of not purity
--
https://issues.dlang.org/show_bug.cgi?id=13729
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #1 from
https://issues.dlang.org/show_bug.cgi?id=13729
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Hardware|x86 |All
Summary|One