blob: 7139ee18e6d956e9d58a59271f443e2ae25751d0 [file] [log] [blame]
// { dg-do compile }
// PR c++/6936
struct Baser
{
enum { j, i }; // { dg-message "declared" }
};
struct Base : Baser
{
static void j();
static void i();
};
struct Derv : Base
{
using Baser::j;
private:
using Baser::i;
};
int k = Derv::j;
int l = Derv::i; // { dg-error "context" }