* init.c (cpp_init_builtins): Update __cplusplus for C++17.

From-SVN: r246211
This commit is contained in:
Jason Merrill 2017-03-16 17:16:39 -04:00 committed by Jason Merrill
parent fbd603c43d
commit 85e653c925
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-03-16 Jason Merrill <jason@redhat.com>
* init.c (cpp_init_builtins): Update __cplusplus for C++17.
2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
* Makefile.in (po/$(PACKAGE).pot): Adjust bug reporting URL.

View File

@ -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");