aboutsummaryrefslogtreecommitdiff
path: root/libcpp/init.c
diff options
context:
space:
mode:
authorEdward Smith-Rowland <3dw4rd@verizon.net>2014-08-28 02:38:24 +0000
committerEdward Smith-Rowland <emsr@gcc.gnu.org>2014-08-28 02:38:24 +0000
commit7c05e50c733d217f7f1da1f5173584fbc5032d2e (patch)
tree52684ca4b76255d7a5b61ebbf050e5ead8070089 /libcpp/init.c
parent241622a51492ed70c63a75c32a60b4e76e020774 (diff)
downloadgcc-7c05e50c733d217f7f1da1f5173584fbc5032d2e.zip
gcc-7c05e50c733d217f7f1da1f5173584fbc5032d2e.tar.gz
gcc-7c05e50c733d217f7f1da1f5173584fbc5032d2e.tar.bz2
PR cpp/23827 - standard C++ should not have hex float preprocessor
libcpp/ 2014-08-27 Edward Smith-Rowland <3dw4rd@verizon.net> PR cpp/23827 - standard C++ should not have hex float preprocessor tokens * libcpp/init.c (lang_flags): Change CXX98 flag for extended numbers from 1 to 0. * libcpp/expr.c (cpp_classify_number): Weite error message for improper use of hex floating literal. gcc/testsuite/ 2014-08-27 Edward Smith-Rowland <3dw4rd@verizon.net> PR cpp/23827 - standard C++ should not have hex float preprocessor tokens * g++.dg/cpp/pr23827_cxx11.C: New. * g++.dg/cpp/pr23827_cxx98.C: New. * g++.dg/cpp/pr23827_cxx98_neg.C: New. * gcc.dg/cpp/pr23827_c90.c: New. * gcc.dg/cpp/pr23827_c90_neg.c: New. * gcc.dg/cpp/pr23827_c99.c: New. From-SVN: r214616
Diffstat (limited to 'libcpp/init.c')
-rw-r--r--libcpp/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/init.c b/libcpp/init.c
index 0d2f737..7aace80 100644
--- a/libcpp/init.c
+++ b/libcpp/init.c
@@ -103,7 +103,7 @@ static const struct lang_flags lang_defaults[] =
/* STDC99 */ { 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1 },
/* STDC11 */ { 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1 },
/* GNUCXX */ { 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 },
- /* CXX98 */ { 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1 },
+ /* CXX98 */ { 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1 },
/* GNUCXX11 */ { 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
/* CXX11 */ { 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1 },
/* GNUCXX14 */ { 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0 },