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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum32.C
blob
9d7a7b533b0422407b5d0264ee385f201aac00e3
1
// PR c++/70241
2
// { dg-do compile { target c++11 } }
3
4
class A {
5
public:
6
enum B : int;
7
};
8
9
enum A::B : int {
10
x
11
};
12
13
struct C {
14
private:
15
enum D : int;
16
};
17
18
enum C::D : int {
19
y
20
};
21
22
int main() {
23
A::x;
24
C::y; // { dg-error "private" }
25
}