Thanks for noticing. Reverted for now in r337278. The wording is still bad,
but talking about ODR uses in there feels worse.

On Tue, Jul 17, 2018 at 1:02 PM Malcolm Parsons <malcolm.pars...@gmail.com>
wrote:

> On Mon, 16 Jul 2018 at 10:57, Benjamin Kramer via cfe-commits
> <cfe-commits@lists.llvm.org> wrote:
> > -  auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; //
> expected-warning{{lambda capture 'i' is not required to be captured for
> this use}}
> > +  auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; //
> expected-warning{{lambda capture of constant 'i' is not required for this
> use}}
>
> i is not a constant:
>
>   int i = 0;
>
> --
> Malcolm Parsons
>
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to