diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6ccc3f97125..d6cc92da501 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-10-03 Alexandre Oliva + + * error.c (dump_type) : Print reworded message. + 2005-10-03 Mark Mitchell PR c++/17775 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 0490fc5bc15..814250abb21 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -259,7 +259,7 @@ dump_type (tree t, int flags) switch (TREE_CODE (t)) { case UNKNOWN_TYPE: - pp_identifier (cxx_pp, ""); + pp_identifier (cxx_pp, ""); break; case TREE_LIST: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ecb578e1146..cf96bb514a0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-10-03 Alexandre Oliva + + * g++.dg/overload/unknown1.C: New. + 2005-10-03 Mark Mitchell PR c++/17775 diff --git a/gcc/testsuite/g++.dg/overload/unknown1.C b/gcc/testsuite/g++.dg/overload/unknown1.C new file mode 100644 index 00000000000..f34d79ffc08 --- /dev/null +++ b/gcc/testsuite/g++.dg/overload/unknown1.C @@ -0,0 +1,9 @@ +// { dg-do compile } + +void foo(void); +int foo(int); +template void bar(T f); + +void baz() { + bar(foo); // { dg-error "" } +}