Bug 19764 – Mutable data passed to _d_assert_fail

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-03-26T15:08:56Z
Last change time
2020-03-21T03:56:36Z
Keywords
diagnostic
Assigned to
No Owner
Creator
anonymous4

Comments

Comment #0 by dfj1esp02 — 2019-03-26T15:08:56Z
When compiled with -checkaction=context --- void f() { char[] a; assert(a=="0"); } --- Error: template instance `object._d_assert_fail!("==", char[], string)` error instantiating
Comment #1 by b2.temp — 2019-03-28T06:46:29Z