PR c++/85587 - error with scoped enum in template.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / scoped_enum8.C
blob3bd66395787ac753b5c5b92d88ac6c0ac779e200
1 // PR c++/85587
2 // { dg-do compile { target c++11 } }
4 template <int N>
5 struct S
7   enum class T
8   {
9     E, F
10   };
11   void foo ();
14 template <int N>
15 void S<N>::foo ()
17   decltype (T::F) t;
20 void
21 bar ()
23   S<0> s;
24   s.foo ();