Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-uneval19.C

raw
1 // { dg-do compile { target c++20 } }
2
3 // PR c++/106221
4 using T = decltype([](){});
5
6 template<typename Opts>
7 using foo = T;
8
9 using bar = foo<int>;
10
11 // PR c++/110680
12 template <auto X = []{}>
13 struct S {
14 auto f() { return X; }
15 };
16
17 template <class T>
18 using C = decltype(S().f());
19
20 using D = C<int>;