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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 17:19:48 PDT 2013


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 at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at 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: -------


More information about the Digitalmars-d-bugs mailing list