[Issue 20323] New: checkaction=context fails for non-copyable arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 26 12:03:44 UTC 2019


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 at puremagic.com
          Reporter: moonlightsentinel at 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

--


More information about the Digitalmars-d-bugs mailing list