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
/
enum22.C
blob
e87a31ce6d520028878e7292cf268f20fa2413d5
1
// PR c++/56155
2
// { dg-do compile { target c++11 } }
3
4
enum e_ : unsigned char { Z_, E_=sizeof(Z_) };
5
static_assert( E_ == 1, "E_ should be 1");
6
7
template <class T>
8
struct A {
9
enum e_ : unsigned char { Z_, E_=sizeof(Z_) };
10
};
11
12
static_assert ( A<double>::E_ == 1, "E_ should be 1");