repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/67273
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
pr6936.C
blob
7139ee18e6d956e9d58a59271f443e2ae25751d0
1
// { dg-do compile }
2
// PR c++/6936
3
4
struct Baser
5
{
6
enum { j, i }; // { dg-message "declared" }
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" }