[Issue 4782] New: atomicOp!"+=" hangs with floating point
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 1 07:32:30 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4782
Summary: atomicOp!"+=" hangs with floating point
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: sean at invisibleduck.org
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2010-09-01 07:32:14 PDT ---
The following program hangs:
import core.atomic;
void main() {
float num1 = 1;
float num2 = 1;
atomicOp!"+="(num1, num2);
}
If I change the operation to any other arithmetic operation, or change the
floats to doubles, it still hangs. If I change num1 and num2 to ints or longs,
it works.
--
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