https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110397
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note here is the odd thing about this issue, it only shows up some of the time. You can reproduce it 100% of the time if you use -fdump-tree-original . Also don't need the include of iostream (though if using godbolt you do need it if not using -fdump-tree-original) .