https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67002
--- Comment #17 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Michael Karcher from comment #16) PR 61904 has been marked as a dup of PR 61801, which has been marked as fixed. So this must be some other bug. When compiling the same code as C and as C++ there might be differences because it's two different language front ends. Sometimes we get cases like PR 56365.