1 // { dg-do assemble  }
2 
3 #include <typeinfo>
4 
5 struct GcspFlags
6 {
7   enum Enum
8   {
9     OffYes,
10     OffNo,
11     Root
12   };
13 
14   static char const* name(Enum flag);
15 
16   template<Enum GCSP_FLAG>
17   struct btmFlag
18   {
19     static Enum const f=OffNo;
20   };
21 
22 };
23 
24 template<>
25 struct
26 GcspFlags::btmFlag<GcspFlags::OffYes>
27 {
28   static GcspFlags::Enum const f=GcspFlags::OffYes;
29 };
30 
31 int
32 main ()
33 {
34   GcspFlags::btmFlag<GcspFlags::OffYes> f;
35   const std::type_info& ti = typeid (f);
36   return 0;
37 }
38 
39