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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-59483.C
blob
b5b06d2c8139bb2f12245653b773cd8f3343e02b
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
}