// { dg-do assemble } // GROUPS passed enums template struct templ { enum { val = 0 }; }; struct Foo { enum { bar = 0, len = templ::val }; }; void func() { int s = Foo::bar; // Ensure that expansion of templ did not erase bar }