repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-108829.C
blob
e621a0d14d06a79604e24faa4e0e105ec95be32e
1
// PR c++/108829
2
// { dg-do compile { target c++11 } }
3
4
template <int>
5
void f(void) {
6
constexpr int IDX_PAGE_SIZE = 4096;
7
int abyPage = [=, abyPage] { return IDX_PAGE_SIZE; }(); // { dg-error "redundant" }
8
}
9
void h() {
10
f<1>();
11
}