error.c (dump_type): Print reworded message.

gcc/cp/ChangeLog:
* error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
gcc/testsuite/ChangeLog:
* g++.dg/overload/unknown1.C: New.

From-SVN: r104934
This commit is contained in:
Alexandre Oliva 2005-10-04 02:21:26 +00:00 committed by Alexandre Oliva
parent 09fbaf62e7
commit 5c06c5cef5
4 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-10-03 Alexandre Oliva <aoliva@redhat.com>
* error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
2005-10-03 Mark Mitchell <mark@codesourcery.com>
PR c++/17775

View file

@ -259,7 +259,7 @@ dump_type (tree t, int flags)
switch (TREE_CODE (t))
{
case UNKNOWN_TYPE:
pp_identifier (cxx_pp, "<unknown type>");
pp_identifier (cxx_pp, "<unresolved overloaded function type>");
break;
case TREE_LIST:

View file

@ -1,3 +1,7 @@
2005-10-03 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/overload/unknown1.C: New.
2005-10-03 Mark Mitchell <mark@codesourcery.com>
PR c++/17775

View file

@ -0,0 +1,9 @@
// { dg-do compile }
void foo(void);
int foo(int);
template <typename T> void bar(T f);
void baz() {
bar(foo); // { dg-error "<unresolved overloaded function type>" }
}