* error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
gcc/testsuite/ChangeLog:
* g++.dg/overload/unknown1.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104934
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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:
+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
--- /dev/null
+// { 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>" }
+}