Debian Codegraph @

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

raw
1 // PR c++/115656
2 // { dg-do compile { target c++20 } }
3
4 template<class T, class U> concept same_as = __is_same(T, U);
5
6 template<same_as<bool> T, template<same_as<bool>> class UU>
7 struct A { };
8
9 template<same_as<bool>> class B;
10
11 A<bool, B> a1;
12 A<long, B> a2; // { dg-error "constraint failure" }