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-this16.C
blob
736d5f50e55cd3fbdcdc3558eb34340c7f9a4db4
1
// PR c++/56699
2
// { dg-require-effective-target c++11 }
3
4
struct A
5
{
6
int a;
7
};
8
9
struct T
10
{
11
int x;
12
13
T() : x([]{
14
sizeof(::A::a);
15
return 0;
16
}())
17
{}
18
};
19
20
struct B
21
{
22
int a;
23
};
24
25
void f()
26
{
27
[]{sizeof(B::a);};
28
}