repo.or.cz
/
official-gcc
/
constexpr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make lambda conversion op and op() non-static.
[official-gcc/constexpr.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-conv3.C
blob
e4e7daffdd5e88d21209fafb116ccfd1432cbd01
1
// Conversion to a function pointer uses a generic thunk, which doesn't
2
// work properly for variadics. Make sure that we can still use the lambda
3
// normally.
4
5
// { dg-options -std=c++0x }
6
7
void f()
8
{
9
auto l = [](...){};
10
void (*p1)(...) = l; // { dg-bogus "sorry" "" { xfail *-*-* } }
11
l(); // OK
12
}