Bug 21444 – bad string concat in static assert message

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-12-02T13:03:49Z
Last change time
2021-01-18T00:03:46Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2020-12-02T13:03:49Z
See https://github.com/dlang/phobos/blob/2c0660141748a13637ff473cbb7b0d52eb1c44db/std/traits.d#L1416 ``` static assert(0, func[0].stringof ~ "is not a function"); ``` The should be a space as first char of the "is not a function" literal
Comment #1 by dlang-bot — 2021-01-17T17:50:05Z
@berni44 created dlang/phobos pull request #7746 "Fix issue 21444: bad string concat in static assert message" fixing this issue: - Fix issue 21444: bad string concat in static assert message https://github.com/dlang/phobos/pull/7746
Comment #2 by dlang-bot — 2021-01-18T00:03:46Z
dlang/phobos pull request #7746 "Fix issue 21444: bad string concat in static assert message" was merged into master: - 40d19bdfcec3d8c16d4b75cb0c73d1673938cf7f by berni42: Fix issue 21444: bad string concat in static assert message https://github.com/dlang/phobos/pull/7746