[Issue 22877] importC: wrong sizeof for string literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 9 00:51:28 UTC 2022


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

--- Comment #9 from Dlang Bot <dlang-bot at dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #14044 "fix Issue 23058 - importC:
cannot take address inside multi-dimension…" mentioning this issue:

- Amend prior fix for issue 22877

  Aligns ImportC's treatment of string literals with C11 by typing them as
static arrays
  Also fixes `typeof(&"")` returning string length instead of pointer size

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

--


More information about the Digitalmars-d-bugs mailing list