The following code fails to compile:
int i; void f(void) { i = _Generic(&i, int * : 1, long * : 2); }
Apparently, SDCC treats &i as __near int * and does not match it wiht int *.
Feature Requests: #749 Patches: #392 Wiki: SDCC-STD-UX
This looks like it could be closely related to the part of [bugs:#3145] where implicit address spaces interfere with _Generic.
_Generic
Bugs: #3145
In the implicitintrinsicnamedaddressspaces branch, there is an experimental fix in [r13393].
Commit: [r13393]
As of [r13402], the fix is in trunk.
Commit: [r13402]
Log in to post a comment.
This looks like it could be closely related to the part of [bugs:#3145] where implicit address spaces interfere with
_Generic.Related
Bugs:
#3145In the implicitintrinsicnamedaddressspaces branch, there is an experimental fix in [r13393].
Related
Commit: [r13393]
Last edit: Philipp Klaus Krause 2022-04-20
As of [r13402], the fix is in trunk.
Related
Commit: [r13402]