blob: ec82dee10b7fef3bcf114ec84a896c25256ab1c3 [file] [log] [blame]
// PR c++/86205
// { dg-do compile { target c++11 } }
bool b;
template < class T > int f ()
{
return 0;
}
template < class T > auto g () -> decltype (b ? f < int > : throw 0)
{
return b ? f<int> : throw 0;
}