This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/85889, reject capturing a structured binding
- From: Jason Merrill <jason at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely at redhat dot com>, Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Date: Tue, 29 May 2018 18:23:14 -0400
- Subject: Re: C++ PATCH for c++/85889, reject capturing a structured binding
- References: <20180529204441.GH3559@redhat.com>
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