Re: [PATCH] c++: __builtin_shufflevector with value-dep expr [PR105353]

2022-04-25 Thread Jason Merrill via Gcc-patches
On 4/22/22 19:57, Marek Polacek wrote: Here we issue an error from c_build_shufflevector while parsing a template because it got a TEMPLATE_PARM_INDEX, but this function expects INTEGER_CSTs (except the first two arguments). It checks if any of the arguments are type-dependent, if so, we leave t

Re: [PATCH] c++: __builtin_shufflevector with value-dep expr [PR105353]

2022-04-22 Thread Jakub Jelinek via Gcc-patches
On Fri, Apr 22, 2022 at 07:57:34PM -0400, Marek Polacek via Gcc-patches wrote: > Here we issue an error from c_build_shufflevector while parsing a template > because it got a TEMPLATE_PARM_INDEX, but this function expects INTEGER_CSTs > (except the first two arguments). It checks if any of the arg

Re: [PATCH] c++: __builtin_shufflevector with value-dep expr [PR105353]

2022-04-22 Thread Richard Biener via Gcc-patches
> Am 23.04.2022 um 01:58 schrieb Marek Polacek via Gcc-patches > : > > Here we issue an error from c_build_shufflevector while parsing a template > because it got a TEMPLATE_PARM_INDEX, but this function expects INTEGER_CSTs > (except the first two arguments). It checks if any of the argumen

[PATCH] c++: __builtin_shufflevector with value-dep expr [PR105353]

2022-04-22 Thread Marek Polacek via Gcc-patches
Here we issue an error from c_build_shufflevector while parsing a template because it got a TEMPLATE_PARM_INDEX, but this function expects INTEGER_CSTs (except the first two arguments). It checks if any of the arguments are type-dependent, if so, we leave the processing for later, but it should al