This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61088] segfault with array of lambdas initialized with initializer list that contains a lambda that captures the array
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 May 2014 10:50:17 +0000
- Subject: [Bug c++/61088] segfault with array of lambdas initialized with initializer list that contains a lambda that captures the array
- Auto-submitted: auto-generated
- References: <bug-61088-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61088
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
As testcase, this can do, I think:
void f()
{
typedef void (X) ();
X x[] = { [x](){} }; // { dg-error "incomplete" }
}
something even closer to the original one is of course welcome.