OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum2.C
1
// { dg-options -std=c++0x }
2
3
enum class E { e = 10 };
4
enum E2 { e2 = 10 };
5
6
struct C {
7
int arr[E::e]; // { dg-error "non-integral type" }
8
int arr2[E2::e2]; // OK
9
int i: E::e; // { dg-error "non-integral type" }
10
int i2: E2::e2; // OK
11
};