https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77948
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 39920 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39920&action=edit gcc7-pr77948-2.patch Alternate patch. As the gcc/g++ drivers reorder options (-std=*, present anywhere on the command line, come before -f* options) passed to cc1plus, the effects of the two patches should be the same unless cc1plus is invoked manually and -f{,no-}ext-numeric-literals comes before -std=* options. I'll test the latter patch first.