// { dg-do compile } // { dg-require-effective-target c++11 } // { dg-options "-g -fdebug-types-section" } class A { public: A(); template A(U); }; template struct B { typedef A type; }; template int Bind(R(Args...), typename B::type...) { return 0; } void KeepBufferRefs(A, A) { A a, b(Bind(KeepBufferRefs, a, b)); }