[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / template-parm5.C
blob5e537b048ba243c2495dbfd176d52d466963cba6
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T>
4   concept bool C1 = __is_same_as(T, int);
6 template<int N>
7   concept bool C2 = N == 0;
9 template<template<typename> class X>
10   concept bool C3 = true;
12 template<typename> struct Foo;
14 template<C1... Ts = int> struct S1; // { dg-error "default argument" }
15 template<C1... = int> struct S2; // { dg-error "default argument" }
16 template<C2... Ns = 0> struct S3; // { dg-error "default argument" }
17 template<C2... = 0> struct S4; // { dg-error "default argument" }
18 template<C3... Ts = Foo> struct S5; // { dg-error "default argument" }
19 template<C3... = Foo> struct S6; // { dg-error "default argument" }