new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 4 Jun 1998 11:45:42 +0000 (07:45 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 4 Jun 1998 11:45:42 +0000 (07:45 -0400)
From-SVN: r20228

gcc/testsuite/g++.old-deja/g++.pt/overload2.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload2.C b/gcc/testsuite/g++.old-deja/g++.pt/overload2.C
new file mode 100644 (file)
index 0000000..809fac4
--- /dev/null
@@ -0,0 +1,16 @@
+//Build don't link:
+template<class T>
+class C
+{
+public:
+       C<T*> O();
+       C<T*> O() const;
+};
+
+
+int
+main()
+{
+       C<char*>        c;
+       char*           p = Z(c.O); //ERROR - ambiguous c.O
+}