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:
parent
09fbaf62e7
commit
5c06c5cef5
4 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
9
gcc/testsuite/g++.dg/overload/unknown1.C
Normal file
9
gcc/testsuite/g++.dg/overload/unknown1.C
Normal 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>" }
|
||||
}
|
Loading…
Add table
Reference in a new issue