Blame SOURCES/gcc34-rh156291.patch

6fdc0f
2005-09-29  Alexandre Oliva  <aoliva@redhat.com>
6fdc0f
6fdc0f
	* error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
6fdc0f
6fdc0f
	* g++.dg/overload/unknown1.C: New.
6fdc0f
6fdc0f
--- gcc/cp/error.c.orig	2004-11-07 11:22:11.000000000 -0200
6fdc0f
+++ gcc/cp/error.c	2005-09-29 16:13:20.000000000 -0300
6fdc0f
@@ -302,7 +302,7 @@
6fdc0f
   switch (TREE_CODE (t))
6fdc0f
     {
6fdc0f
     case UNKNOWN_TYPE:
6fdc0f
-      pp_identifier (cxx_pp, "<unknown type>");
6fdc0f
+      pp_identifier (cxx_pp, "<unresolved overloaded function type>");
6fdc0f
       break;
6fdc0f
 
6fdc0f
     case TREE_LIST:
6fdc0f
--- gcc/testsuite/g++.dg/overload/unknown1.C	1970-01-01 00:00:00.000000000 +0000
6fdc0f
+++ gcc/testsuite/g++.dg/overload/unknown1.C	2005-09-29 16:12:49.000000000 -0300
6fdc0f
@@ -0,0 +1,9 @@
6fdc0f
+// { dg-do compile }
6fdc0f
+
6fdc0f
+void foo(void);
6fdc0f
+int foo(int);
6fdc0f
+template <typename T> void bar(T f);
6fdc0f
+
6fdc0f
+void baz() {
6fdc0f
+  bar(foo); // { dg-error "<unresolved overloaded function type>" }
6fdc0f
+}