aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index a9f5b15..79803d2 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -988,6 +988,10 @@ dump_decl (tree t, int flags)
dump_decl (BASELINK_FUNCTIONS (t), flags);
break;
+ case NON_DEPENDENT_EXPR:
+ dump_expr (t, flags);
+ break;
+
default:
sorry_for_unsupported_tree (t);
/* Fallthrough to error. */
@@ -2028,7 +2032,11 @@ dump_expr (tree t, int flags)
dump_expr (get_first_fn (t), flags & ~TFF_EXPR_IN_PARENS);
break;
- /* else fall through */
+ case NON_DEPENDENT_EXPR:
+ output_add_string (scratch_buffer, "<expression of type ");
+ dump_type (TREE_TYPE (t), flags);
+ output_add_character (scratch_buffer, '>');
+ break;
/* This list is incomplete, but should suffice for now.
It is very important that `sorry' does not call