https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684
--- Comment #2 from Lemetter Sebastien <Sebastien.Lemetter at de dot bosch.com> --- With this compiler version: ❯ /usr/bin/g++-9 --version g++-9 (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 the bug does not occur. The problem is that our target is to compile for QNX on ARM architecture, and the cross compiler we got is: ❯ q++ -V cc: targets available in /opt/qnx710/host/linux/x86_64/etc/qcc: 8.3.0,gcc_ntox86_64_cxx 8.3.0,gcc_ntoaarch64le_gpp 8.3.0,gcc_ntoarmv7le 8.3.0,gcc_ntoarmv7le_gpp 8.3.0,gcc_ntox86_64 So I could use GCC v9, but it will not help me with my target build. Could you just confirm if this bug was ever reported? We are working in the automotive industry, and there, you don t update easily your compiler. It must be certified, which takes years. We have even issues with using compiler flags. That s why we are only using -o2 and not -o3