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
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-use2.C
blob
96af09c5cbc04135365c07e7818fa11818b6f2ef
1
// PR c++/50224
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wunused-parameter" }
4
5
struct T;
6
7
void m(T& t) // ERROR here
8
{
9
[&]{
10
t; // ``t`` is referenced here
11
};
12
}