blob: 55f25a7ccf80716c5bcc41967609dc43d04b48dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Verify we can check satisfaction of a non-dependent member alias
// template-id whose constraints don't depend on outer template
// parameters ahead of time.
// { dg-do compile { target c++20 } }
template<class T>
struct A {
template<int N> requires (N > 0)
using at = T;
void f() {
using ty1 = at<0>; // { dg-error "constraint" }
using ty2 = at<1>;
}
};
|