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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum30.C
blob
cf0c1b5e7ae6b625bbda0bc28007ada6eebcb5f3
1
// PR c++/68586
2
// { dg-do compile { target c++11 } }
3
4
enum E { x , y = 1 + (x << 1) };
5
template<E> struct A {};
6
A<x> a;
7
8
enum E2 : int { x2 , y2 = x2 << 1 };
9
template<E2> struct A2 {};
10
A2<x2> a2;
11
12
enum class E3 { x3 , y3 = x3 << 1 };
13
template<E3> struct A3 {};
14
A3<E3::x3> a3;