re PR c++/77948 (Option processing of -std=c++11 -std=gnu++11 doesn't reset ext_numer...
authorJakub Jelinek <jakub@redhat.com>
Mon, 31 Oct 2016 16:38:21 +0000 (17:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 16:38:21 +0000 (17:38 +0100)
commitdcb466eca3741d1cb06acb44a4009657cd475781
tree8c64fede4c4066c5dff6e9d102527ca44edf645e
parent1e4fa9b11255ea15a3510dfd1e3011ffebdcc530
re PR c++/77948 (Option processing of -std=c++11 -std=gnu++11 doesn't reset ext_numeric_literals)

PR c++/77948
* c.opt (fext-numeric-literals): Add Var and Init.
* c-opts.c (c_common_handle_option): Don't clear
cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
(c_common_post_options): Clear it here if not set
explicitly.

* g++.dg/cpp0x/pr77948-1.C: New test.
* g++.dg/cpp0x/pr77948-2.C: New test.
* g++.dg/cpp0x/pr77948-3.C: New test.
* g++.dg/cpp0x/pr77948-4.C: New test.
* g++.dg/cpp0x/pr77948-5.C: New test.
* g++.dg/cpp0x/pr77948-6.C: New test.

From-SVN: r241707
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/c-family/c.opt
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr77948-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr77948-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr77948-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr77948-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr77948-5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr77948-6.C [new file with mode: 0644]