https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66373
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you provide the preprocessed source? As I don't have SDL2 installed here. Also really since you are compiling with redhat's gcc, you should report it to them.