Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-err2.C

raw
1 // { dg-do compile { target c++20 } }
2
3 #include <compare>
4 template <class T, T x = (T() <=> T())> // { dg-error "31:0 <=> 0" }
5 void f(T);
6 //constexpr int f(...) { return 42; }
7 constexpr int i = f(24); // { dg-error "no match" }