repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum4.C
blob
80798eff4612b19ef7dbcd49a1ae61addd995cd4
1
// PR c++/60994
2
// { dg-do compile { target c++11 } }
3
4
struct B {
5
enum struct A
6
{
7
n = 3
8
};
9
};
10
11
struct C: B
12
{
13
using B::A;
14
15
A foo()
16
{
17
int A;
18
return A::n;
19
}
20
};