Re: [PATCH v3] c++: Fix CTAD for aggregates in template [PR95568]

2020-06-29 Thread Jason Merrill via Gcc-patches
On 6/26/20 5:38 PM, Marek Polacek wrote: On Fri, Jun 26, 2020 at 04:19:08PM -0400, Jason Merrill wrote: Please also test scoped enum. Here: -- >8 -- 95568 complains that CTAD for aggregates doesn't work within requires-clause and it turned out that it doesn't work when we try the deduction in

Re: [PATCH v3] c++: Fix CTAD for aggregates in template [PR95568]

2020-06-26 Thread Marek Polacek via Gcc-patches
On Fri, Jun 26, 2020 at 04:19:08PM -0400, Jason Merrill wrote: > Please also test scoped enum. Here: -- >8 -- 95568 complains that CTAD for aggregates doesn't work within requires-clause and it turned out that it doesn't work when we try the deduction in a template. The reason is that maybe_aggr