1 // PR c++/61507
2 // { dg-do compile { target c++11 } }
3 
4 struct A {
5   void foo(const int &);
6   void foo(float);
7 };
8 
9 template <typename... Args>
10 void bar(void (A::*memfun)(Args...), Args... args);
11 
go(const int & i)12 void go(const int& i) {
13   bar<const int &>(&A::foo, i);
14 }
15