2005-09-29 Alexandre Oliva * error.c (dump_type) : Print reworded message. * g++.dg/overload/unknown1.C: New. --- gcc/cp/error.c.orig 2004-11-07 11:22:11.000000000 -0200 +++ gcc/cp/error.c 2005-09-29 16:13:20.000000000 -0300 @@ -302,7 +302,7 @@ switch (TREE_CODE (t)) { case UNKNOWN_TYPE: - pp_identifier (cxx_pp, ""); + pp_identifier (cxx_pp, ""); break; case TREE_LIST: --- gcc/testsuite/g++.dg/overload/unknown1.C 1970-01-01 00:00:00.000000000 +0000 +++ gcc/testsuite/g++.dg/overload/unknown1.C 2005-09-29 16:12:49.000000000 -0300 @@ -0,0 +1,9 @@ +// { dg-do compile } + +void foo(void); +int foo(int); +template void bar(T f); + +void baz() { + bar(foo); // { dg-error "" } +}