Ticket #653 (Open)Sat Sep 21 16:13:40 UTC 2024
cc 5.93: Wrong address is accessed when reading/writing a member of an anonymous struct
Reported by: | Crispian Daniels (10122) | Severity: | Major |
Part: | RISC OS: C/C++ toolchain | Release: | |
Milestone: | Status | Open |
Details by Crispian Daniels (10122):
The attached code performs equivalent operations on an anonymous struct in a union and on a named struct in a union.
The output for the anonymous struct differs from that for the named struct – each read or write address for the anonymous struct is 8 bytes lower than expected.