The tree-walk looking for parameter packs didn't find this one because we weren't stepping into TYPE_RAISES_EXCEPTIONS. gcc/cp/ChangeLog: PR c++/99583 PR c++/99584 * tree.c (cp_walk_subtrees) [FUNCTION_TYPE]: Walk into TYPE_RAISES_EXCEPTIONS. gcc/testsuite/ChangeLog: PR c++/99583 * g++.dg/cpp0x/lambda/lambda-variadic12.C: New test.
10 lines
132 B
C
10 lines
132 B
C
// PR c++/99583
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
void f(...);
|
|
|
|
template <bool... B>
|
|
void g() {
|
|
f([]() noexcept(B) {} ...);
|
|
}
|