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
vect: Fix inconsistency in fully-masked lane-reducing op generation [PR116985]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
using-enum-1.C
blob
bf251babeaefa43f18effecd313204b0efcd6d51
1
// PR c++/60265
2
// { dg-do compile { target c++11 } }
3
4
// [namespace.udecl]/7 shall not name a scoped enumerator.
5
// (so unscoped enumerator is ok)
6
7
namespace A
8
{
9
enum E { V };
10
11
using E::V;
12
}
13
14
void foo()
15
{
16
using A::E::V;
17
}
18
19
using A::E::V;
20
21
enum F { U };
22
23
using F::U;