Ticket #548 (Fixed)Sun Mar 20 13:19:32 UTC 2022
cc 5.89: _Generic breaks when used with pointers
Reported by: | Jeffrey Lee (213) | Severity: | Normal |
Part: | RISC OS: C/C++ toolchain | Release: | |
Milestone: | Status | Fixed |
Details by Jeffrey Lee (213):
If _Generic is used to identify pointers to types, then (a) the compiler will access zero page when compiling the code, and (b) the compiled code will fail to identify the type of value (it’ll take the default case in the _Generic statement, if there is one).
Changelog:
Modified by Jeffrey Lee (213) Sun, March 20 2022 - 13:21:10 GMT
- Attachment added: pointers
Sample C code. Linux GCC 8.3.0 is able to compile and run it fine.
Modified by Jeffrey Lee (213) Sat, September 24 2022 - 11:30:39 GMT
- Status changed from Open to Fixed
Appears to be fixed with CC 5.90 (DDE 31a)