Debian Codegraph @

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

raw
1 // PR c++/70037
2 // { dg-do compile { target c++20 } }
3
4 namespace std {
5 template<typename>
6 struct F {
7 static constexpr bool value = false;
8 };
9
10 template<typename T>
11 struct tuple {
12 constexpr tuple() requires (F<T>::value) {}
13 explicit constexpr tuple() requires (F<T>::value) && (true) {}
14 };
15 }
16
17 using std::tuple;
18 template struct std::tuple<tuple<int>>;