Debian Codegraph @

gcc/testsuite/g++.dg/template/enum5.C

raw
1 // { dg-do compile }
2
3 // Origin: [email protected]
4 // Wolfgang Bangerth <[email protected]>
5
6 // PR c++/14479: Template header check for enum
7
8 template <int dim>
9 struct X {
10 enum { dimension = dim };
11 template<int d> void bar ();
12 };
13
14 template <>
15 template <>
16 void X<0>::bar<0> () {}