Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / spec16.C
blobc872052a8649302c45f3a02d625ded0d938e7672
1 // { dg-do compile }
2 // Contributed by Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // PR c++/14497: Reject specialization without template headers
5 template <int N>  
6 struct A { 
7   template<int M> void B () ; 
8 }; 
10 void A<0>::B<0>() {    // { dg-error "specializing member 'A<0>::B<0>' requires 'template<>' syntax" }
11