www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21701] New: casWeak is not implemented

https://issues.dlang.org/show_bug.cgi?id=21701

          Issue ID: 21701
           Summary: casWeak is not implemented
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: rymrg memail.com

casWeak is not implemented

import core.atomic;
void main()
{
    int a;
    casWeak!(MemoryOrder.acq_rel, MemoryOrder.raw)(&a, 0, 4);
}

/dlang/dmd/linux/bin64/../../src/druntime/import/core/atomic.d(430): Error:
template instance atomicCompareExchangeWeakNoResult!(succ, fail) template
atomicCompareExchangeWeakNoResult is not defined
onlineapp.d(5): Error: template instance
core.atomic.casWeak!(MemoryOrder.acq_rel, MemoryOrder.raw, int, int, int) error
instantiating

--
Mar 11 2021