diff options
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 44a2e78..927b3de 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1238,7 +1238,7 @@ bind_template_template_parm (tree t, tree newargs) tree decl = TYPE_NAME (t); tree t2; - t2 = make_aggr_type (BOUND_TEMPLATE_TEMPLATE_PARM); + t2 = cxx_make_type (BOUND_TEMPLATE_TEMPLATE_PARM); decl = build_decl (TYPE_DECL, DECL_NAME (decl), NULL_TREE); /* These nodes have to be created to reflect new TYPE_DECL and template @@ -1958,7 +1958,7 @@ error_type (tree arg) ; else if (real_lvalue_p (arg)) type = build_reference_type (lvalue_type (arg)); - else if (IS_AGGR_TYPE (type)) + else if (MAYBE_CLASS_TYPE_P (type)) type = lvalue_type (arg); return type; |