1 // PR c++/58156
2 // { dg-do compile { target c++11 } }
3 
4 template <class T, class... U>
Foo(U &...)5 void Foo(U&...) {}
6 
7 template <class T, class... U>
Foo(const U &...)8 void Foo(const U&...) {}
9 
Bar()10 void Bar() {
11   const int a = 0;
12   Foo<int>(a);
13 }
14