This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79180] Nested lambda-capture causes segfault for parameter pack
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Jan 2017 10:01:33 +0000
- Subject: [Bug c++/79180] Nested lambda-capture causes segfault for parameter pack
- Auto-submitted: auto-generated
- References: <bug-79180-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79180
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-01-23
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Simplified testcase:
void
foo (int a)
{
if (a != 127)
__builtin_abort ();
}
template <typename... Args>
void
bar (Args &&... args)
{
[&]() { [&]() { foo (args...); } (); } ();
}
int
main ()
{
int x = 127;
bar (x);
}