1 // PR c++/87513 2 // { dg-do compile { target c++11 } } 3 4 struct A { template <long> void foo (); }; 5 template <long t> auto bar () -> decltype (&A::foo<t>); foo()6 void foo () 7 { 8 bar<0> (); 9 } 10