1 // PR c++/56358 2 // { dg-do compile { target c++11 } } 3 4 struct foo { foofoo5 explicit foo(int) {} 6 }; 7 8 template<typename T> 9 struct bar: T { 10 using T::T; 11 12 // Bad barbar13 explicit bar(): T(0) {} 14 bazbar15 void baz() 16 { 17 // Also bad 18 using qux = T; 19 } 20 }; 21 22 bar<foo> b, b2(42); 23