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:
parent
7919bb2fba
commit
214452b957
4 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
9
gcc/testsuite/g++.dg/other/error22.C
Normal file
9
gcc/testsuite/g++.dg/other/error22.C
Normal 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" }
|
||||
}
|
Loading…
Add table
Reference in a new issue