// PR c++/66758
// { dg-options "-std=c++1z -fconcepts" }

template <class T, class U>
concept bool C = requires (T t, U u) { t + u; };

template <class T, class U>
requires C<T,U>
void f(T t, U u) { t + u; }

int main()
{
  using T = decltype(f(42, 24));
}
