[Bug c/70093] Instancing function with VM return type cases internal compiler error in 'assign_stack_temp_for_type'.

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 8 13:46:00 GMT 2016


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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Probably.  Because this doesn't (to my surprise) ICE:

void
foo (int n)
{
  struct S { int a[n]; };

  struct S
  fn (void)
  {
    struct S s;
    s.a[0] = 1;
    return s;
  }

  struct S x;
  x = fn (); // just "fn();" ICEs
}


More information about the Gcc-bugs mailing list