aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-class4.C
blob: 90395f110256a180f55332d2b4b9b94f88912583 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/103341
// { dg-do compile { target c++20 } }

template<class T, class U> concept same_as = __is_same(T, U);
template<class T>
struct A {
  static inline same_as<T> auto value = 0; // { dg-error "constraint" }
};

template struct A<int>; // { dg-bogus "" }
template struct A<bool>; // { dg-message "required from here" }