Re: [PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jason Merrill via Gcc-patches
On 10/28/21 08:19, Jakub Jelinek wrote: On Thu, Oct 28, 2021 at 08:01:27AM -0400, Jason Merrill wrote: --- gcc/cp/semantics.c.jj 2021-10-27 09:16:41.161600606 +0200 +++ gcc/cp/semantics.c 2021-10-28 13:06:59.325791588 +0200 @@ -3079,6 +3079,24 @@ finish_unary_op_expr (location_t op_loc,

Re: [PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 28, 2021 at 08:01:27AM -0400, Jason Merrill wrote: > > --- gcc/cp/semantics.c.jj 2021-10-27 09:16:41.161600606 +0200 > > +++ gcc/cp/semantics.c 2021-10-28 13:06:59.325791588 +0200 > > @@ -3079,6 +3079,24 @@ finish_unary_op_expr (location_t op_loc, > > return result; > > }

Re: [PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jason Merrill via Gcc-patches
On 10/28/21 07:26, Jakub Jelinek wrote: On Wed, Oct 27, 2021 at 04:58:53PM -0400, Jason Merrill wrote: On 10/21/21 04:42, Jakub Jelinek wrote: Hi! Here is an attempt to implement DR2351 - void{} - where void{} after pack expansion is considered valid and the same thing as void(). For

[PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 27, 2021 at 04:58:53PM -0400, Jason Merrill wrote: > On 10/21/21 04:42, Jakub Jelinek wrote: > > Hi! > > > > Here is an attempt to implement DR2351 - void{} - where void{} after > > pack expansion is considered valid and the same thing as void(). > > For templates, dunno if we have