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

2021-10-27 Thread Jason Merrill via Gcc-patches
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 some better way to check if a CONSTRUCTOR might be empty after pack expansion. Would

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

2021-10-21 Thread Jakub Jelinek via Gcc-patches
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 some better way to check if a CONSTRUCTOR might be empty after pack expansion. Would that only if the constructor only contains