[Issue 21098] poor diagnostic when trying to assign a string literal to a `char*`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 21 08:37:52 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21098
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@NilsLankila created dlang/dmd pull request #11602 "fix issue 21098 - Add
specific diagnostic for failed assign from StringExp" fixing this issue:
- fix issue 21098 - Add specific diagnostic for failed assign from StringExp
Because assigning a literal to `char*` or a `char[]` is almost correct, add a
supplemental error message that suggests to use a const/immtable type.
https://github.com/dlang/dmd/pull/11602
--
More information about the Digitalmars-d-bugs
mailing list