summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-04-11 08:51:40 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-04-11 08:51:40 +0000
commit7fcd7802e90f3ac37b10668d051a31be63c8af3c (patch)
treeaad13b041136904924a5d40ca37025b35f027607 /gcc/cp/error.c
parent9cac5d1dc7ac882f3adf9cad83cdeef9e3f63e8f (diff)
downloadgcc-7fcd7802e90f3ac37b10668d051a31be63c8af3c.tar.gz
PR c++/80363
* error.c (dump_expr): Handle VEC_COND_EXPR like COND_EXPR. * g++.dg/ext/pr80363.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index d8c5d5ea412..f93e8b67841 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2080,6 +2080,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
break;
case COND_EXPR:
+ case VEC_COND_EXPR:
pp_cxx_left_paren (pp);
dump_expr (pp, TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS);
pp_string (pp, " ? ");