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
}