Commit 82665822 by Jakub Jelinek Committed by Jakub Jelinek

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
parent fc647d44
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> 2017-04-10 Jakub Jelinek <jakub@redhat.com>
PR c++/80176 PR c++/80176
......
...@@ -2080,6 +2080,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags) ...@@ -2080,6 +2080,7 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
break; break;
case COND_EXPR: case COND_EXPR:
case VEC_COND_EXPR:
pp_cxx_left_paren (pp); pp_cxx_left_paren (pp);
dump_expr (pp, TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS); dump_expr (pp, TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS);
pp_string (pp, " ? "); pp_string (pp, " ? ");
......
2017-04-11 Jakub Jelinek <jakub@redhat.com>
PR c++/80363
* g++.dg/ext/pr80363.C: New test.
2017-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> 2017-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: Require double64plus. * gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: Require double64plus.
......
// PR c++/80363
// { dg-do compile }
typedef int V __attribute__((vector_size (16)));
int
foo (V *a, V *b)
{
if (*a < *b) // { dg-error "could not convert\[^#]*from" }
return 1;
return 0;
}
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