re PR c++/17232 ([DR 1640] classes and class template specializations treated differe...
[gcc.git] / gcc / testsuite / g++.dg / template / abstract-dr337.C
1 // PR c++/17232 (DR 337)
2
3 template<typename T>
4 class A {
5 virtual void f() = 0;
6 };
7
8 template<typename T>
9 void g(T (*a)[1]) {} // { dg-error "abstract" "" }
10
11 int main() {
12 g<A<int> >(0); // { dg-error "no matching function" }
13 }