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-ice5.C
blob
914e0f71e009d272fcf6ffb279bd102206031174
1
// PR c++/51227
2
// { dg-do compile { target c++11 } }
3
4
template<int> int foo()
5
{
6
[] (void i) { return 0; } (0); // { dg-error "incomplete|invalid|no match" }
7
}
8
9
void bar()
10
{
11
foo<0>();
12
}