1// { dg-do compile } 2 3// Origin: robertk@mathematik.uni-freiburg.de 4// Wolfgang Bangerth <bangerth@ticam.utexas.edu> 5 6// PR c++/14479: Template header check for enum 7 8template <int dim> 9struct X { 10 enum { dimension = dim }; 11 template<int d> void bar (); 12}; 13 14template <> 15template <> 16void X<0>::bar<0> () {} 17