www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20323] New: checkaction=context fails for non-copyable

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

          Issue ID: 20323
           Summary: checkaction=context fails for non-copyable arguments
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

A unittest from rt.util.container.treap.d fails to compile with -unittest
-checkaction=context:

src/core/internal/dassert.d(220): Error: struct
rt.util.container.treap.Treap!uint.Treap is not copyable because it is
annotated with  disable
src/core/internal/dassert.d(17): Error: template instance
core.internal.dassert.miniFormatFakeAttributes!(Treap!uint) error instantiating
src/rt/util/container/treap.d(282):        instantiated from here:
_d_assert_fail!("==", Treap!uint, uint[])


The is caused by miniFormat trying to copy Treap which has a disabled postblit

--
Oct 26 2019