blob: 89057c4244121ed7c907555c30d83fb92176ea6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/66758
// { dg-do compile { target c++2a } }
template <class T, class U>
concept 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; }
struct non_addable { };
int main()
{
using T = decltype(f(42, 24));
}
|