summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error21.C
blob: c5f04f03e856b06d053b5cec5e0ad76fd477bdb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/20173

template<typename AT>
struct A{
  template<typename T>
  void function(T){}
};

template<>
template<typename T>
void A<int>::function(T){}

template<>
template<typename T>
void A<double>::function(T*){} // { dg-error "match" }