D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21444 - bad string concat in static assert message
Summary: bad string concat in static assert message
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 trivial
Assignee: No Owner
URL:
Keywords: diagnostic, pull
Depends on:
Blocks:
 
Reported: 2020-12-02 13:03 UTC by basile-z
Modified: 2021-01-18 00:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2020-12-02 13:03:49 UTC
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 Dlang Bot 2021-01-17 17:50:05 UTC
@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 Dlang Bot 2021-01-18 00:03:46 UTC
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