Debian Codegraph @

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

raw
1 // PR c++/103341
2 // { dg-do compile { target c++20 } }
3
4 template<class T, class U> concept same_as = __is_same(T, U);
5 template<class T>
6 struct A {
7 static inline same_as<T> auto value = 0; // { dg-error "constraint" }
8 };
9
10 template struct A<int>; // { dg-bogus "" }
11 template struct A<bool>; // { dg-message "required from here" }