summaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog6
-rw-r--r--gcc/c-family/c-cppbuiltin.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index acdedc8e024..72a6803f1c7 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,9 @@
+2016-12-22 Jason Merrill <jason@redhat.com>
+
+ Implement P0522R0, matching of template template arguments.
+ * c-cppbuiltin.c (c_cpp_builtins): Define
+ __cpp_template_template_args.
+
2016-12-21 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/78817
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index e2419e81233..a841e534374 100644
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -985,6 +985,8 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define_formatted (pfile, "__STDCPP_DEFAULT_NEW_ALIGNMENT__=%d",
aligned_new_threshold);
}
+ if (flag_new_ttp)
+ cpp_define (pfile, "__cpp_template_template_args=201611");
}
/* Note that we define this for C as well, so that we know if
__attribute__((cleanup)) will interface with EH. */