[Issue 22893] New: importC: can't cast array to integral type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 18 04:33:04 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22893
Issue ID: 22893
Summary: importC: can't cast array to integral type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC, rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
char buf[1];
void fn() { unsigned long p = (unsigned long)buf; }
Error: cannot cast expression `buf` of type `char[1]` to `ulong`
(it should turn into the pointer)
--
More information about the Digitalmars-d-bugs
mailing list