Re: [PATCH] c++: Make braced-init-list as template arg work with aggr init [PR95369]

2020-05-29 Thread Jason Merrill via Gcc-patches
On 5/28/20 7:23 PM, Marek Polacek wrote: Barry pointed out to me that our braced-init-list as a template-argument extension doesn't work as expected when we aggregate-initialize. Thus fixed by calling digest_init in convert_nontype_argument so that we can actually convert the CONSTRUCTOR. I don

[PATCH] c++: Make braced-init-list as template arg work with aggr init [PR95369]

2020-05-28 Thread Marek Polacek via Gcc-patches
Barry pointed out to me that our braced-init-list as a template-argument extension doesn't work as expected when we aggregate-initialize. Thus fixed by calling digest_init in convert_nontype_argument so that we can actually convert the CONSTRUCTOR. I don't think we can call digest_init any earlie