[Bug c++/77948] Option processing of -std=c++11 -std=gnu++11 doesn't reset ext_numeric_literals

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 29 11:50:00 GMT 2016


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.


More information about the Gcc-bugs mailing list