The C++ frontend issues a broken diagnostic for the following invalid testcase since GCC 3.1: ============================== extern double fabs(double); void foo(double x) { fabs(x)(); } ============================== bug.cc: In function 'void foo(double)': bug.cc:5: error: '#'abs_expr' not supported by dump_expr#<expression error>' cannot be used as a function
Confirmed.
Subject: Bug 34394 Author: jakub Date: Mon Dec 10 14:31:30 2007 New Revision: 130744 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130744 Log: PR c++/34394 * error.c (dump_expr): Handle ABS_EXPR. * g++.dg/other/error22.C: New test. Added: trunk/gcc/testsuite/g++.dg/other/error22.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/error.c trunk/gcc/testsuite/ChangeLog
Fixed on the trunk.
Oops, didn't mean to close this altogether.
Closing 4.1 branch.
Closing 4.2 branch, fixed in 4.3.