Debian Codegraph @

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

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