https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111672
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56046|0 |1 is obsolete| | --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 56053 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56053&action=edit Real Preprocessed source So with the preprocessed source you provided still could not reproduce the issue but Adding `-D_FORTIFY_SOURCE=2` to the original testcase does. Obvious this was not mentioned and makes it harder to understand what was going wrong even.