www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Issue with =?UTF-8?Q?atomics=E2=80=A6?=

I have a piece of code:

	synchronized(sumMutex) { sum +=3D localSum; }

Ugly, I know. LDC tells me (deprecation warning) to replace it with:

	atomicOp!"+=3D"(sum, localSum);

Sadly this code fails to work. It is an LDC thing as the code works fine
with DMD. Is this a bug I should be reporting, or is it something
already known?

--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Jan 28 2015