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
This commit is contained in:
Jakub Jelinek 2007-12-10 15:31:30 +01:00 committed by Jakub Jelinek
parent 7919bb2fba
commit 214452b957
4 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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>
PR c++/34178

View file

@ -2054,6 +2054,7 @@ dump_expr (tree t, int flags)
case DELETE_EXPR:
case VEC_DELETE_EXPR:
case MODOP_EXPR:
case ABS_EXPR:
pp_expression (cxx_pp, t);
break;

View file

@ -1,3 +1,8 @@
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>
PR target/32086

View file

@ -0,0 +1,9 @@
// PR c++/34394
// { dg-do compile }
extern double fabs (double);
void foo (double x)
{
fabs (x) (); // { dg-error "__builtin_abs" }
}