[Issue 22993] Missing quotes in octal literal hint

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 8 06:59:56 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22993

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13962 "merge stable" was merged into master:

- a8073e12ac97c63e00f5e24d6ee4bea64e209ec9 by MoonlightSentinel:
  Fix 22993 - Suggest string overload of std.conv.octal

  The previously suggested integer overload has two drawbacks. The literal
  parsed as base 10 and hence can overflow for larger values that are only
  valid in base 8. It also requires additional CTFE because it converts
  the value to string.

  So add quotes to the literal in the error message to suggest the string
  overload.

https://github.com/dlang/dmd/pull/13962

--


More information about the Digitalmars-d-bugs mailing list