Re: [PATCH] c++: Fix Bases(args...)... base initializer [PR88580]

2021-04-27 Thread Jason Merrill via Gcc-patches
On 4/26/21 12:17 PM, Patrick Palka wrote: When substituting into the arguments of a base initializer pack expansion, tsubst_initializer_list uses a dummy EXPR_PACK_EXPANSION in order to expand an initializer such as Bases(args)... into Bases#{0}(args#{0}) and so on. But when an argument inside t

[PATCH] c++: Fix Bases(args...)... base initializer [PR88580]

2021-04-26 Thread Patrick Palka via Gcc-patches
When substituting into the arguments of a base initializer pack expansion, tsubst_initializer_list uses a dummy EXPR_PACK_EXPANSION in order to expand an initializer such as Bases(args)... into Bases#{0}(args#{0}) and so on. But when an argument inside the base initializer is itself an pack expans