aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-02-25 21:29:03 -0500
committerJason Merrill <jason@redhat.com>2020-02-25 23:21:14 -0500
commitf59aeab723cfcbf2b986ce777a11fd869db0185a (patch)
tree97ee6b0b8d96c687e367140ebb5635abf3d401d6 /gcc/cp
parentac5e28911abdfb8d9bf6bea980223e199bbcf28d (diff)
downloadgcc-f59aeab723cfcbf2b986ce777a11fd869db0185a.zip
gcc-f59aeab723cfcbf2b986ce777a11fd869db0185a.tar.gz
gcc-f59aeab723cfcbf2b986ce777a11fd869db0185a.tar.bz2
c++: Define TYPE_REF_P.
Various backports depend on it. gcc/cp/ChangeLog 2020-02-25 Jason Merrill <jason@redhat.com> * cp-tree.h (TYPE_REF_P): New.
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/cp-tree.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 82e6aa9..b8d8d02 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
2020-02-25 Jason Merrill <jason@redhat.com>
+ * cp-tree.h (TYPE_REF_P): New.
+
+2020-02-25 Jason Merrill <jason@redhat.com>
+
PR c++/87748 - substitution failure error with decltype.
* pt.c (most_specialized_partial_spec): Clear
processing_template_decl.
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index c519c8e..70c7755 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -4254,6 +4254,10 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter)
#define TYPE_PTR_P(NODE) \
(TREE_CODE (NODE) == POINTER_TYPE)
+/* Returns true if NODE is a reference. */
+#define TYPE_REF_P(NODE) \
+ (TREE_CODE (NODE) == REFERENCE_TYPE)
+
/* Returns true if NODE is an object type:
[basic.types]