Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class46.C

raw
1 // PR c++/93383
2 // { dg-do compile { target c++20 } }
3
4 template <int> struct A {};
5
6 template <A a> struct B {
7 void foo(B<+a>);
8 void bar(B<a.x>);
9 template <class T> using type = B<T{}>;
10 template <class> static inline auto y = A{0}; // { dg-error "deduction|no match" }
11 };