From 5c06c5cef5a993cd7f35daecf6a2e43447a2a476 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 4 Oct 2005 02:21:26 +0000 Subject: [PATCH] error.c (dump_type): Print reworded message. gcc/cp/ChangeLog: * error.c (dump_type) : Print reworded message. gcc/testsuite/ChangeLog: * g++.dg/overload/unknown1.C: New. From-SVN: r104934 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/error.c | 2 +- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/overload/unknown1.C | 9 +++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.dg/overload/unknown1.C 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 "" } +}