[Issue 3672] New: read-modify-write (rmw) operators must be disabled for shared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 4 08:51:33 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3672

           Summary: read-modify-write (rmw) operators must be disabled for
                    shared
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-01-04 08:51:32 PST ---
shared int x;

void main()
{
    x++;
}

This compiles but it shouldn't. For a shared word-sized object, only reading
and writing it are allowed, as well as shared and synchronized calls where
applicable.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list