[Bug middle-end/103374] sorry, unimplemented: __builtin_clear_padding not supported for variable length aggregates

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 23 08:05:57 GMT 2021


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced C testcase:
int f(int t)
{
  struct s{int y[t];};
  struct s u;
  return u.y[0];
}

Compile with -ftrivial-auto-var-init=pattern .


More information about the Gcc-bugs mailing list