Bug 20323 – checkaction=context fails for non-copyable arguments
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-26T12:03:44Z
Last change time
2019-10-28T07:21:39Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel
Comments
Comment #0 by moonlightsentinel — 2019-10-26T12:03:44Z
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
Comment #1 by dlang-bot — 2019-10-26T13:13:20Z
@MoonlightSentinel created dlang/druntime pull request #2841 "Fix Issue 20323 - checkaction=context fails for non-copyable arguments" fixing this issue:
- Fix Issue 20323 - checkaction=context fails for non-copyable arguments
https://github.com/dlang/druntime/pull/2841
Comment #2 by dlang-bot — 2019-10-28T07:21:39Z
dlang/druntime pull request #2841 "Fix Issue 20323 - checkaction=context fails for non-copyable arguments" was merged into master:
- 8a34db658d9407ed6cb72c38c6916d593137a910 by Florian Brandt:
Fix Issue 20323 - checkaction=context fails for non-copyable arguments
https://github.com/dlang/druntime/pull/2841