[Issue 24375] ImportC: .di generator outputs C expression with `->` operator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 29 08:16:35 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24375
--- Comment #2 from Michael Reese <michaelate at gmail.com> ---
This issue also appears when C-code has macros accessing struct elements via
pointer to struct.
C-code:
#define access_ptr(b,y) ((b)->x=(y))
ouptuts:
auto access_ptr(__MP20, __MP21)(__MP20 b, __MP21 y)
{
return b->x = y; // Doesn't compile. Should be b.x = y
}
--
More information about the Digitalmars-d-bugs
mailing list