[Bug c++/79180] Nested lambda-capture causes segfault for parameter pack
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 23 10:01:00 GMT 2017
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);
}
More information about the Gcc-bugs
mailing list