cpp_define (pfile, "__cpp_generic_lambdas=201707L");
cpp_define (pfile, "__cpp_designated_initializers=201707L");
if (cxx_dialect <= cxx20)
- cpp_define (pfile, "__cpp_constexpr=201907L");
+ cpp_define (pfile, "__cpp_constexpr=202002L");
cpp_define (pfile, "__cpp_constexpr_in_decltype=201711L");
cpp_define (pfile, "__cpp_conditional_explicit=201806L");
cpp_define (pfile, "__cpp_consteval=201811L");
if (flag_concepts)
{
if (cxx_dialect >= cxx20)
- cpp_define (pfile, "__cpp_concepts=201907L");
+ cpp_define (pfile, "__cpp_concepts=202002L");
else
cpp_define (pfile, "__cpp_concepts=201507L");
}
#ifndef __cpp_concepts
# error "__cpp_concepts"
-#elif __cpp_concepts != 201907
-# error "__cpp_concepts != 201907"
+#elif __cpp_concepts != 202002
+# error "__cpp_concepts != 202002"
#endif
#ifndef __cpp_using_enum
#ifndef __cpp_constexpr
# error "__cpp_constexpr"
-#elif __cpp_constexpr != 201907
-# error "__cpp_constexpr != 201907"
+#elif __cpp_constexpr != 202002
+# error "__cpp_constexpr != 202002"
#endif
#ifndef __cpp_decltype_auto
#ifndef __cpp_concepts
# error "__cpp_concepts"
-#elif __cpp_concepts != 201907
-# error "__cpp_concepts != 201907"
+#elif __cpp_concepts != 202002
+# error "__cpp_concepts != 202002"
#endif
#ifndef __cpp_using_enum