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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access17.C
blob
0c45100058c73d409ae38325c36df7dacdb1ffe9
1
// PR c++/27339
2
3
class A
4
{
5
private:
6
enum private_enum {a};
7
8
template<A::private_enum v> // OK
9
struct B
10
{
11
void bm();
12
};
13
public:
14
void am()
15
{
16
B<a> instance; //OK
17
instance.bm();
18
}
19
};
20
21
template<A::private_enum v> // FAIL
22
void
23
A::B<v>::bm(){}