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++/64105
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-variadic2.C
blob
2808aa6c190ef62d75a4db416b4500a336c26e7d
1
// PR c++/64105
2
// This test was ICEing on pre-C++14 mode.
3
4
#include <functional>
5
6
using F = std::function<void(void)>;
7
8
struct X
9
{
10
template <typename T>
11
static void f(T t)
12
{
13
g(t);
14
}
15
16
static void g(F) {}
17
};
18
19
int main()
20
{
21
X::f([](auto... xs){}); // { dg-error "" "" { target { ! cxx14 } } }
22
};