Commit 5c06c5ce by Alexandre Oliva Committed by Alexandre Oliva

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
parent 09fbaf62
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> 2005-10-03 Mark Mitchell <mark@codesourcery.com>
PR c++/17775 PR c++/17775
......
...@@ -259,7 +259,7 @@ dump_type (tree t, int flags) ...@@ -259,7 +259,7 @@ dump_type (tree t, int flags)
switch (TREE_CODE (t)) switch (TREE_CODE (t))
{ {
case UNKNOWN_TYPE: case UNKNOWN_TYPE:
pp_identifier (cxx_pp, "<unknown type>"); pp_identifier (cxx_pp, "<unresolved overloaded function type>");
break; break;
case TREE_LIST: case TREE_LIST:
......
2005-10-03 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/overload/unknown1.C: New.
2005-10-03 Mark Mitchell <mark@codesourcery.com> 2005-10-03 Mark Mitchell <mark@codesourcery.com>
PR c++/17775 PR c++/17775
// { 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>" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment