// A regression test for a bug extracting the enum constants in a template // class. template class C { enum { foo, bar, baz } delim; void f(); }; template void C::f() { switch (delim) { case bar: break; case baz: break; case foo: break; } } template class C;