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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum2.C
blob
456b0daedd189f57c600c1e875882fd7c6300305
1
// { dg-do compile { target c++11 } }
2
3
enum class E { e = 10 };
4
enum E2 { e2 = 10 };
5
6
struct C {
7
int arr[E::e]; // { dg-error "could not convert|non-integral type" }
8
int arr2[E2::e2]; // OK
9
int i: E::e; // { dg-error "could not convert|non-integral type" }
10
int i2: E2::e2; // OK
11
};