aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias6.C
blob: 26a38641ab31a426891d8893b0d22745fbd5a2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/93295
// { dg-do compile { target c++20 } }

template<typename T, bool B = false>
struct Foo {
    Foo(T) {}
};

template<typename T> Foo(T) -> Foo<T>;
template<typename T> using Bar = Foo<T, true>;
Bar b{0};