Commit 214452b9 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/34394 (Broken diagnostic: 'abs_expr' not supported by dump_expr)

	PR c++/34394
	* error.c (dump_expr): Handle ABS_EXPR.

	* g++.dg/other/error22.C: New test.

From-SVN: r130744
parent 7919bb2f
2007-12-10 Jakub Jelinek <jakub@redhat.com>
PR c++/34394
* error.c (dump_expr): Handle ABS_EXPR.
2007-12-09 Jakub Jelinek <jakub@redhat.com> 2007-12-09 Jakub Jelinek <jakub@redhat.com>
PR c++/34178 PR c++/34178
......
...@@ -2054,6 +2054,7 @@ dump_expr (tree t, int flags) ...@@ -2054,6 +2054,7 @@ dump_expr (tree t, int flags)
case DELETE_EXPR: case DELETE_EXPR:
case VEC_DELETE_EXPR: case VEC_DELETE_EXPR:
case MODOP_EXPR: case MODOP_EXPR:
case ABS_EXPR:
pp_expression (cxx_pp, t); pp_expression (cxx_pp, t);
break; break;
......
2007-12-10 Jakub Jelinek <jakub@redhat.com>
PR c++/34394
* g++.dg/other/error22.C: New test.
2007-12-10 Paolo Bonzini <bonzini@gnu.org> 2007-12-10 Paolo Bonzini <bonzini@gnu.org>
PR target/32086 PR target/32086
// PR c++/34394
// { dg-do compile }
extern double fabs (double);
void foo (double x)
{
fabs (x) (); // { dg-error "__builtin_abs" }
}
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