Re: [C++ PATCH] Avoid constexpr garbage for implicit conversion to void.

2019-06-19 Thread Jakub Jelinek
On Tue, Jun 18, 2019 at 12:07:38PM -0400, Jason Merrill wrote: > commit 8f67898b9bd5924f3dd5218164df62ada10ea428 > Author: Jason Merrill > Date: Sat Jun 15 23:59:55 2019 -0400 > > Consolidate constexpr array handling. > > * constexpr.c (eval_and_check_array_index): Split ou

Re: [C++ PATCH] Avoid constexpr garbage for implicit conversion to void.

2019-06-18 Thread Jason Merrill
On Tue, Jun 11, 2019 at 12:28 AM Jason Merrill wrote: > > On Fri, Jun 7, 2019 at 5:08 PM Jason Merrill wrote: > > > > All expression statements and some other places express implicit conversion > > to > > void with a CONVERT_EXPR. There's no reason to build up a new one as part > > of > > cons

Re: [C++ PATCH] Avoid constexpr garbage for implicit conversion to void.

2019-06-10 Thread Jason Merrill
On Fri, Jun 7, 2019 at 5:08 PM Jason Merrill wrote: > > All expression statements and some other places express implicit conversion to > void with a CONVERT_EXPR. There's no reason to build up a new one as part of > constexpr evaluation. > > The ADDR_EXPR change also avoids a bit of garbage by di