blob: da5b09af8adc045f2548e8fa5c4599c3b7f7cc86 [file] [log] [blame]
// DR 1512
// PR c++/87699
// { dg-do compile { target c++11 } }
template<class T, decltype((((T*) 0) < nullptr), true) = false> // { dg-error "ordered comparison" }
bool test(T*)
{
return true;
}
int main()
{
test((int*)(nullptr)); // { dg-error "no matching function" }
}