1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool C1 = __is_same_as(T, int);
7 concept bool C2 = N == 0;
9 template<template<typename> class X>
10 concept bool C3 = true;
12 template<typename> struct Foo;
14 // Type template parameters
15 template<C1 T = int> struct S1 { };
16 template<C1 = int> struct S2;
17 template<C1 T> struct S2 { };
19 // Non-type template parameters
20 template<C2 N = 0> struct S3 { };
21 template<C2 = 0> struct S4;
22 template<C2 N> struct S4 { };
24 // Template template parameters
25 template<C3 X = Foo> struct S5 { };
26 template<C3 = Foo> struct S6;
27 template<C3 X> struct S6 { };