Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor18.C
blob05735559a72ed996578786e92a423f5c12e1a15d
1 // PR c++/56358
2 // { dg-do compile { target c++11 } }
4 struct foo {
5   explicit foo(int) {}
6 };
8 template<typename T>
9 struct bar: T {
10   using T::T;
12   // Bad
13   explicit bar(): T(0) {}
15   void baz()
16   {
17     // Also bad
18     using qux = T;
19   }
22 bar<foo> b, b2(42);