Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec15.C

raw
1 // PR c++/111890
2 // { dg-do compile { target c++20 } }
3
4 template<class>
5 struct A {
6 template<class T>
7 struct B { };
8
9 template<class T> requires T::value
10 struct B<T> { };
11
12 template<class T> requires (sizeof(T) == sizeof(int))
13 struct B<T> {
14 friend void operator+(B&, int) { }
15 };
16 };
17
18 void f(A<int>::B<int> b) {
19 b + 0;
20 }