blob: 7139ee18e6d956e9d58a59271f443e2ae25751d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// { 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" }
|