[Bug c++/106001] [12/13 Regression] ICE: expected expression 'static_cast<char>(1)' of kind static_cast_expr since r12-1128-gef8176e0fac935

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 16 17:30:26 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106001

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Actually valid testcase:

typedef int V __attribute__((vector_size (2 * sizeof (int))));

template <int>
void
foo ()
{
  V v {};
  v = __builtin_shufflevector (v, v, static_cast<char>(1),
static_cast<char>(0));
}

void
bar ()
{
  foo <0> ();
}


More information about the Gcc-bugs mailing list