summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/enum5.C
blob: b7a49f45d0f11b27f276bbf0a99af28f398fadf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }

// Origin: robertk@mathematik.uni-freiburg.de
//	   Wolfgang Bangerth <bangerth@ticam.utexas.edu>

// PR c++/14479: Template header check for enum

template <int dim>
struct X {
  enum { dimension = dim };
  template<int d> void bar ();
};

template <>
template <>
void X<0>::bar<0> () {}