Bug 13003 – Lack of read-modify-write operation check on shared object field

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-29T03:29:00Z
Last change time
2014-06-29T16:22:20Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-06-29T03:29:32Z
In git-head, issue 3672 is fixed, but its implementation is not enough. Test case: void main() { shared int n; n++; // deprecated RMW operation n *= 4; // deprecated RMW operation struct S { int var; } shared S s; s.var++; // no deprecation s.var -= 2; // no deprecation }
Comment #1 by k.hara.pg — 2014-06-29T04:14:25Z
Comment #2 by github-bugzilla — 2014-06-29T16:22:20Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9df19d76e860b9e7df530d72b5e5cbf19bb74d47 fix Issue 13003 - Lack of read-modify-write operation check on shared object field https://github.com/D-Programming-Language/dmd/commit/b79c18fae4761650a929e96b84c40e47bcae7027 Merge pull request #3701 from 9rnsr/fix13003 Issue 13003 - Lack of read-modify-write operation check on shared object field