Okay, I've confirmed that the problem can be fixed by changing this: #if defined(__has_attribute) to this: #if defined(__has_attribute) && !defined(__SDCC)
Okay yes I just rebuilt the Docker container with 4.2.0 and it works just fine. Changing nothing in the image except the SDCC precompiled download breaks on 4.3.0 and 4.4.0, including all their release candidates.
Okay yes I just re-confirmed 4.2.0 works. The exact same setup breaks on 4.3.0 and 4.4.0, including all their release candidates.
Crash with "internal compiler error" when compiling