projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR c++/59483 (A nested lambda fails to find a protected name with qualified name)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-59483.C
1
// PR c++/59483
2
// { dg-do compile { target c++11 } }
3
4
struct X
5
{
6
protected:
7
int i;
8
};
9
10
struct Y : X
11
{
12
Y()
13
{
14
[&]{ X::i = 3; }();
15
}
16
};
17
18
template <class T>
19
struct Y2 : T
20
{
21
Y2()
22
{
23
[&]{ T::i = 3; }();
24
}
25
};
26
27
int main()
28
{
29
Y y;
30
Y2<X> y2;
31
}