Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr65634.C

raw
1 // { dg-do compile { target c++20 } }
2
3 template<typename T>
4 concept C1 =
5 requires () {
6 { T::smf() } noexcept;
7 };
8
9 struct M1 {
10 static void smf() noexcept;
11 };
12 template<typename T>
13 concept C2 = C1<typename T::type>;
14
15 struct M2 {
16 using type = M1;
17 };
18 static_assert(C2<M2>, "");