Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/class-deduction-alias22.C

raw
1 // PR c++/115198
2 // { dg-do compile { target c++20 } }
3
4 template<bool B, class T>
5 struct C {
6 C() = default;
7 C(const C&) = default;
8 };
9
10 template<class T>
11 using A = C<false, T>;
12
13 C<false, int> c;
14 A a = c; // { dg-bogus "ambiguous" }