comparison gcc/testsuite/g++.dg/cpp2a/concepts-inherit-ctor9.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // PR c++/94719
2 // { dg-do compile { target concepts } }
3
4 template<typename T>
5 struct bar
6 {
7 template<int N = 5> requires (N == 5)
8 bar() { }
9 };
10
11 template<typename T>
12 struct foo : bar<T>
13 {
14 using foo::bar::bar;
15 };
16
17 void baz()
18 {
19 foo<int>{};
20 }