* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
From-SVN: r234508
This commit is contained in:
parent
6f6d25c9e9
commit
322b8466d2
@ -1,3 +1,7 @@
|
||||
2016-03-28 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
|
||||
|
||||
2016-03-23 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR c++/69884
|
||||
|
@ -841,7 +841,7 @@ c_cpp_builtins (cpp_reader *pfile)
|
||||
cpp_define (pfile, "__cpp_lambdas=200907");
|
||||
if (cxx_dialect == cxx11)
|
||||
cpp_define (pfile, "__cpp_constexpr=200704");
|
||||
cpp_define (pfile, "__cpp_range_based_for=200907");
|
||||
cpp_define (pfile, "__cpp_range_based_for=201603");
|
||||
if (cxx_dialect <= cxx14)
|
||||
cpp_define (pfile, "__cpp_static_assert=200410");
|
||||
cpp_define (pfile, "__cpp_decltype=200707");
|
||||
|
@ -55,8 +55,8 @@
|
||||
|
||||
#ifndef __cpp_range_based_for
|
||||
# error "__cpp_range_based_for"
|
||||
#elif __cpp_range_based_for != 200907
|
||||
# error "__cpp_range_based_for != 200907"
|
||||
#elif __cpp_range_based_for < 200907
|
||||
# error "__cpp_range_based_for < 200907"
|
||||
#endif
|
||||
|
||||
#ifndef __cpp_static_assert
|
||||
|
@ -48,8 +48,8 @@
|
||||
|
||||
#ifndef __cpp_range_based_for
|
||||
# error "__cpp_range_based_for"
|
||||
#elif __cpp_range_based_for != 200907
|
||||
# error "__cpp_range_based_for != 200907"
|
||||
#elif __cpp_range_based_for < 200907
|
||||
# error "__cpp_range_based_for < 200907"
|
||||
#endif
|
||||
|
||||
#ifndef __cpp_static_assert
|
||||
|
@ -42,8 +42,8 @@
|
||||
|
||||
#ifndef __cpp_range_based_for
|
||||
# error "__cpp_range_based_for"
|
||||
#elif __cpp_range_based_for != 200907
|
||||
# error "__cpp_range_based_for != 200907"
|
||||
#elif __cpp_range_based_for != 201603
|
||||
# error "__cpp_range_based_for != 201603"
|
||||
#endif
|
||||
|
||||
#ifndef __cpp_decltype
|
||||
|
Loading…
Reference in New Issue
Block a user