summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/abstract-dr337.C
blob: 6905262d6cbfc43504aac42df3c7eeb40c1af729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/17232 (DR 337)

template<typename T>
class A {
  virtual void f() = 0;
};

template<typename T>
void g(T (*a)[1]) {}		// { dg-error "abstract" "" }

int main() {
  g<A<int> >(0);  // { dg-error "no matching function" }
}