summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/operator3.C
blob: 45292cd954f6e83f520a1df5f918f711390c25f1 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/15640

struct A {
  void foo(void);
};

template <int> void bar() {
  A a;
  a + a.foo; // { dg-error "" }
}