Bug 21715 – static assert() should accept and print multiple arguments just like pragma(msg)

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-15T00:12:24Z
Last change time
2021-03-16T08:14:52Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2021-03-15T00:12:24Z
pragma(msg, 1, 2); prints `12`. assert(0, 1, 2); should also print `12`.
Comment #1 by iamthewilsonator — 2021-03-15T03:20:07Z
See, https://github.com/dlang/dmd/pull/11757 which is almost ready to go, but I don't have the time at the moment to finish it off
Comment #2 by razvan.nitu1305 — 2021-03-16T08:14:52Z
This is a duplicate of https://issues.dlang.org/show_bug.cgi?id=17378 *** This issue has been marked as a duplicate of issue 17378 ***