Control: forwarded -1 https://gcc.gnu.org/PR122016 you can work around that for now using -O1 instead of -O2.