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-deduce2.C
blob
5cf016cb9070d5c84e8bd2e35d6f555b3e473041
1
// PR c++/43875
2
// { dg-do compile { target c++11 } }
3
4
void f();
5
void f(int);
6
7
int main()
8
{
9
auto x1 = []{ return f; }; // { dg-error "return|overloaded" }
10
auto x2 = []{ return { 1, 2 }; }; // { dg-error "return|list" }
11
}