blob: d55d3d2a5bfb32953e3ddec9f26800c8af6c1ec7 [file] [log] [blame]
// { dg-options "-std=c++11" }
struct A
{
int i;
explicit A(int i): i(i) {}
};
struct B: A
{
using A::A;
};
void f(B);
int main()
{
f(B(42)); // OK
f(42); // { dg-error "could not convert" }
}