summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/overload13.C
blob: f66f1038c7c1e5befe78a403666eff82384b0d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
struct A {
  template <class T> int f (T) { return 0; }
  int f (int) { return 1; }
};

int main ()
{
  A a;
  return a.template f (0); // { dg-error "" } 
}