Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/inh-ctor18.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/56358 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 struct foo { | |
5 explicit foo(int) {} | |
6 }; | |
7 | |
8 template<typename T> | |
9 struct bar: T { | |
10 using T::T; | |
11 | |
12 // Bad | |
13 explicit bar(): T(0) {} | |
14 | |
15 void baz() | |
16 { | |
17 // Also bad | |
18 using qux = T; | |
19 } | |
20 }; | |
21 | |
22 bar<foo> b, b2(42); |