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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr82410.C
blob
185f6447d0f7d651074fddda38de9c067de120fa
1
// PR c++/82410
2
// { dg-do compile { target c++14 } }
3
4
int
5
main ()
6
{
7
struct A {};
8
struct S
9
{
10
int & p;
11
int x = p;
12
operator A () { return {}; }
13
};
14
int l;
15
[] (A) {} (S{l});
16
}