+2020-04-14 Patrick Palka <ppalka@redhat.com>
+
+ PR c++/85278
+ * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double
+ ampersand if it's an rvalue reference type.
+
2020-04-13 Martin Sebor <msebor@redhat.com>
PR c/92326
2020-04-14 Patrick Palka <ppalka@redhat.com>
+ PR c++/85278
+ * cxx-pretty-print.c (cxx_pretty_printer:simple_type_specifier)
+ <case DECLTYPE_TYPE>: Handle DECLTYPE_TYPE here instead of ...
+ (pp_cxx_type_specifier_seq) <case DECLTYPE_TYPE>: ... here.
+ (cxx_pretty_printer::direct_abstract_declarator) <case DECLTYPE_TYPE>:
+ New no-op case.
+
PR c++/94034
* constexpr.c (replace_result_decl_data): New struct.
(replace_result_decl_data_r): New function.
/* simple-type-specifier:
::(opt) nested-name-specifier(opt) type-name
::(opt) nested-name-specifier(opt) template(opt) template-id
+ decltype-specifier
char
wchar_t
bool
pp_cxx_unqualified_id (this, TYPENAME_TYPE_FULLNAME (t));
break;
+ case DECLTYPE_TYPE:
+ pp_cxx_ws_string (this, "decltype");
+ pp_cxx_left_paren (this);
+ this->expression (DECLTYPE_TYPE_EXPR (t));
+ pp_cxx_right_paren (this);
+ break;
+
default:
c_pretty_printer::simple_type_specifier (t);
break;
case TEMPLATE_TEMPLATE_PARM:
case TYPE_DECL:
case BOUND_TEMPLATE_TEMPLATE_PARM:
+ case DECLTYPE_TYPE:
pp_cxx_cv_qualifier_seq (pp, t);
pp->simple_type_specifier (t);
break;
pp_cxx_nested_name_specifier (pp, TYPE_METHOD_BASETYPE (t));
break;
- case DECLTYPE_TYPE:
- pp_cxx_ws_string (pp, "decltype");
- pp_cxx_left_paren (pp);
- pp->expression (DECLTYPE_TYPE_EXPR (t));
- pp_cxx_right_paren (pp);
- break;
-
case RECORD_TYPE:
if (TYPE_PTRMEMFUNC_P (t))
{
case TEMPLATE_TEMPLATE_PARM:
case BOUND_TEMPLATE_TEMPLATE_PARM:
case UNBOUND_CLASS_TEMPLATE:
+ case DECLTYPE_TYPE:
break;
default:
2020-04-14 Patrick Palka <ppalka@redhat.com>
+ PR c++/85278
+ * g++.dg/concepts/diagnostic9.C: New test.
+
PR c++/94034
* g++.dg/cpp0x/constexpr-empty15.C: New test.
* g++.dg/cpp1y/constexpr-nsdmi6a.C: New test.