The new regression test gcc-torture-execute-pr87053.c fails for all targets:
When initializing a struct in a union, SDCC initializes only the first struct member according to the initalizer. The other struct members are always initalized to 0.
summary: struct in union intialization: gcc-torture-execute-pr87053.c fails --> struct in union initialization: gcc-torture-execute-pr87053.c fails
Description has changed:
Diff:
--- old+++ new@@ -1,3 +1,3 @@The new regression test gcc-torture-execute-pr87053.c fails for all targets:
-When initializing a struct in a union, SDCC initializes only the first struct member according to the initalizer. The other struct memebers are always initalized to 0.+When initializing a struct in a union, SDCC initializes only the first struct member according to the initalizer. The other struct members are always initalized to 0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Diff: