1 // PR c++/86205 2 // { dg-do compile { target c++11 } } 3 4 bool b; 5 f()6 template < class T > int f () 7 { 8 return 0; 9 } 10 11 template < class T > auto g () -> decltype (b ? f < int > : throw 0) 12 { 13 return b ? f<int> : throw 0; 14 } 15