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
PR c++/85587 - error with scoped enum in template.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum8.C
blob
3bd66395787ac753b5c5b92d88ac6c0ac779e200
1
// PR c++/85587
2
// { dg-do compile { target c++11 } }
3
4
template <int N>
5
struct S
6
{
7
enum class T
8
{
9
E, F
10
};
11
void foo ();
12
};
13
14
template <int N>
15
void S<N>::foo ()
16
{
17
decltype (T::F) t;
18
}
19
20
void
21
bar ()
22
{
23
S<0> s;
24
s.foo ();
25
}