https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118377
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> (In reply to Soumya AR from comment #2)
> > Related: Using the C division operator with svfloat ICEs with g++ but not
> > gcc.
> >
> > Testcase:
> >
> > #include <arm_sve.h>
> >
> > svfloat16_t foo(svfloat16_t x) { return x / 4; }
>
> There might be a few other places that might need to support vec_duplicate
> too. E.g. templates. Those shouldn't be too hard to fix either.
I split out the VEC_DUPLICATE issue with potential_constant_expression_1 into
PR 118377. I will file the template one in a few minutes.