digitalmars.D.bugs - [Issue 22893] New: importC: can't cast array to integral type
- d-bugmail puremagic.com (19/19) Mar 17 2022 https://issues.dlang.org/show_bug.cgi?id=22893
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 puremagic.com Reporter: duser 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) --
Mar 17 2022