| 2005-09-29 Alexandre Oliva <aoliva@redhat.com> |
| |
| * error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message. |
| |
| * g++.dg/overload/unknown1.C: New. |
| |
| |
| |
| @@ -302,7 +302,7 @@ |
| 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: |
| |
| |
| @@ -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>" } |
| +} |