https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66618
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #7) > (In reply to Alex Henrie from comment #6) > > This wasn't fixed properly, or it was broken again before the release of GCC > > 8.1: In GCC 8.1 and later no warning at all is issued for the example > > program, even at -O0. > > The fix was to change it to be a valid constant expression .... At -O0 even.