Debian Codegraph @

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

raw
1 // PR c++/59200
2 // { dg-do compile { target c++17 } }
3 // { dg-additional-options "-fconcepts" }
4
5 struct A
6 {
7 static constexpr bool value = true;
8 };
9
10 template<typename T>
11 struct B
12 {
13 template<typename U>
14 using C = A;
15 };
16
17 template<typename T>
18 template<typename U>
19 const bool B<T>::C<U>::value; // { dg-error "too many" }