Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // { dg-do compile { target c++2a } } | |
2 | |
3 template<typename T> | |
4 concept C = __is_class(T); | |
5 | |
6 template<typename T> | |
7 struct S1 { | |
8 template<C U> S1(U x) { } | |
9 }; | |
10 | |
11 template<typename T> | |
12 struct S2 : S1<T> { | |
13 using S1<T>::S1; // { dg-error "no matching function" } | |
14 }; | |
15 | |
16 int main() { | |
17 S2<int> s(0); // { dg-error "use of deleted function" } | |
18 } |