diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-04-11 10:51:40 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-04-11 10:51:40 +0200 |
commit | 82665822b174f025389699abd0a124d44d80a200 (patch) | |
tree | aad13b041136904924a5d40ca37025b35f027607 /gcc/cp | |
parent | fc647d444b60b4d4a1df0a570032d1bbe54afe4a (diff) | |
download | gcc-82665822b174f025389699abd0a124d44d80a200.zip gcc-82665822b174f025389699abd0a124d44d80a200.tar.gz gcc-82665822b174f025389699abd0a124d44d80a200.tar.bz2 |
re PR c++/80363 (#'vec_cond_expr' not supported by dump_expr#<expression error>)
PR c++/80363
* error.c (dump_expr): Handle VEC_COND_EXPR like COND_EXPR.
* g++.dg/ext/pr80363.C: New test.
From-SVN: r246834
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b7cbca5..e16efdc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2017-04-11 Jakub Jelinek <jakub@redhat.com> + + PR c++/80363 + * error.c (dump_expr): Handle VEC_COND_EXPR like COND_EXPR. + 2017-04-10 Jakub Jelinek <jakub@redhat.com> PR c++/80176 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index d8c5d5e..f93e8b6 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, " ? "); |