This is the mail archive of the gcc-patches@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]

Re: C++ PATCH for c++/85889, reject capturing a structured binding


On Tue, May 29, 2018 at 4:44 PM, Marek Polacek <polacek@redhat.com> wrote:
> [expr.prim.lambda.capture] p8 says "If a lambda-expression explicitly captures
> an entity that is not odr-usable or captures a structured binding (explicitly
> or implicitly), the program is ill-formed."

That's a pretty recent change, and seems to be controversial, so I
think let's hold off on this patch for now.

Jason


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