This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61088] segfault with array of lambdas initialized with initializer list that contains a lambda that captures the array


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]