blob: 0210f53b9d9ba02c0a18a6545aee81d793775b06 [file] [log] [blame]
// PR c++/52440
// { dg-do compile { target c++11 } }
template<bool>
struct V
{
typedef void type;
};
template<typename T>
struct X
{
template<typename>
static constexpr bool always_true()
{
return true;
}
template<typename U,
typename = typename V<always_true<U>()>::type>
X(U &&) {}
};
int main()
{
X<int> x(42);
}