https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109004
--- Comment #1 from bugreporter66 at gmail dot com --- Checked g++ 10.4 today, it works as it should. 11.3 and 12.1 were tested to show the issue so far. The command line for building: powerpc64le-linux-gnu-g++ -O2 -static test.cpp -o test_p64