projects
/
platform
/
upstream
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
377fbcce1e3142e1268be72b32d66e751be82f9e
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using38.C
1
// { dg-do compile }
2
// PR c++/6936
3
4
struct Baser
5
{
6
enum { j, i }; // { dg-error "inaccessible" }
7
};
8
9
struct Base : Baser
10
{
11
static void j();
12
static void i();
13
};
14
15
struct Derv : Base
16
{
17
using Baser::j;
18
private:
19
using Baser::i;
20
};
21
22
int k = Derv::j;
23
int l = Derv::i; // { dg-error "context" }