blob: 39751013bf3c95c8d9097a1faced257dfb457d63 [file] [log] [blame]
// { dg-do compile { target c++11 } }
class A
{
int i;
protected:
A(int i): i(i) {}
};
struct B: A
{
using A::A; // { dg-error "protected" }
};
B b(42); // { dg-error "this context" }