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