www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10260] New: core.atomic functions are marked nothrow but use asm

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

           Summary: core.atomic functions are marked nothrow but use asm
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-06-03 17:19:46 PDT ---
cat > bug.d << CODE
import core.atomic;

void foo()
{
    shared bool value;
    atomicStore(value, false);
}
CODE

dmd -c -profile bug

...
Error: asm statments are assumed to throw
----

Strangely enough the error is only shown with -profile.

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