Blame SOURCES/gcc32-rh156291.patch

4ac4fd
2005-09-29  Alexandre Oliva  <aoliva@redhat.com>
4ac4fd
4ac4fd
	* error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
4ac4fd
4ac4fd
	* g++.dg/overload/unknown1.C: New.
4ac4fd
4ac4fd
--- gcc/cp/error.c.orig	2005-09-29 16:02:59.000000000 -0300
4ac4fd
+++ gcc/cp/error.c	2005-09-29 16:03:13.000000000 -0300
4ac4fd
@@ -339,7 +339,7 @@
4ac4fd
   switch (TREE_CODE (t))
4ac4fd
     {
4ac4fd
     case UNKNOWN_TYPE:
4ac4fd
-      print_identifier (scratch_buffer, "<unknown type>");
4ac4fd
+      print_identifier (scratch_buffer, "<unresolved overloaded function type>");
4ac4fd
       break;
4ac4fd
 
4ac4fd
     case TREE_LIST:
4ac4fd
--- gcc/testsuite/g++.dg/overload/unknown1.C	1970-01-01 00:00:00.000000000 +0000
4ac4fd
+++ gcc/testsuite/g++.dg/overload/unknown1.C	2005-09-29 16:03:13.000000000 -0300
4ac4fd
@@ -0,0 +1,9 @@
4ac4fd
+// { dg-do compile }
4ac4fd
+
4ac4fd
+void foo(void);
4ac4fd
+int foo(int);
4ac4fd
+template <typename T> void bar(T f);
4ac4fd
+
4ac4fd
+void baz() {
4ac4fd
+  bar(foo); // { dg-error "<unresolved overloaded function type>" }
4ac4fd
+}