Commit 06756ed9 by Jason Merrill Committed by Jason Merrill

PR c++/85279 - dump_expr doesn't understand decltype.

	* error.c (dump_expr): Handle DECLTYPE_TYPE.

From-SVN: r259257
parent 06e8d82e
2018-04-09 Jason Merrill <jason@redhat.com> 2018-04-09 Jason Merrill <jason@redhat.com>
PR c++/85279 - dump_expr doesn't understand decltype.
* error.c (dump_expr): Handle DECLTYPE_TYPE.
PR c++/85262 - ICE with redundant qualification on constructor. PR c++/85262 - ICE with redundant qualification on constructor.
* call.c (build_new_method_call_1): Move make_args_non_dependent * call.c (build_new_method_call_1): Move make_args_non_dependent
after A::A() handling. after A::A() handling.
......
...@@ -2714,6 +2714,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags) ...@@ -2714,6 +2714,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
case INTEGER_TYPE: case INTEGER_TYPE:
case COMPLEX_TYPE: case COMPLEX_TYPE:
case VECTOR_TYPE: case VECTOR_TYPE:
case DECLTYPE_TYPE:
pp_type_specifier_seq (pp, t); pp_type_specifier_seq (pp, t);
break; break;
......
// PR c++/85279
// { dg-do compile { target c++11 } }
template<typename T> struct A
{
void foo(decltype(T())::Y); // { dg-error {decltype\(T\(\)\)::Y} }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment