// { dg-do assemble } template class B { A a; public: const A& value () { return a; } }; static B b_int; int foo () { return b_int.value(); }