Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / overload2.C
blobe53df3e35b1247277a13c7b60d6076261b46ae1c
1 // { dg-do assemble  }
2 template<class T>
3 class C
5 public:
6         C<T*> O();
7         C<T*> O() const;
8 };
11 int
12 main()
14         C<char*>        c;
15         char*           p = Z(c.O); //{ dg-error "" } ambiguous c.O