aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias18.C
blob: 0bb11bb944c14a5b87178bb38054a365186f299c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/112769
// { dg-do compile { target c++20 } }

template<int I, typename T>
struct type
{
    type(T) requires requires { T{0}; };
};

template <typename T>
using alias = type<0, T>;

alias foo{123};