From: Jason Merrill Date: Thu, 16 Mar 2017 21:16:39 +0000 (-0400) Subject: * init.c (cpp_init_builtins): Update __cplusplus for C++17. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85e653c925771a3c9103779e2657bfa3d505cb98;p=gcc.git * init.c (cpp_init_builtins): Update __cplusplus for C++17. From-SVN: r246211 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index fefb2f02ab5..5c4b7a09f09 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,7 @@ +2017-03-16 Jason Merrill + + * init.c (cpp_init_builtins): Update __cplusplus for C++17. + 2017-02-09 Gerald Pfeifer * Makefile.in (po/$(PACKAGE).pot): Adjust bug reporting URL. diff --git a/libcpp/init.c b/libcpp/init.c index 0679b7f9e36..1477673245a 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -499,7 +499,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted) { if (CPP_OPTION (pfile, lang) == CLK_CXX1Z || CPP_OPTION (pfile, lang) == CLK_GNUCXX1Z) - _cpp_define_builtin (pfile, "__cplusplus 201500L"); + _cpp_define_builtin (pfile, "__cplusplus 201703L"); else if (CPP_OPTION (pfile, lang) == CLK_CXX14 || CPP_OPTION (pfile, lang) == CLK_GNUCXX14) _cpp_define_builtin (pfile, "__cplusplus 201402L");