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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Known to work|                            |11.0
             Status|NEW                         |RESOLVED

--- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning has disappeared with r11-4745.  GCC now emits the following code:

;; Function _GLOBAL__sub_I_a (_GLOBAL__sub_I_a, funcdef_no=5, decl_uid=2418,
cgraph_uid=6, symbol_order=6) (executed once)

void _GLOBAL__sub_I_a ()
{
  int i;
  void * _5;

  <bb 2> [local count: 1073741824]:
  MEM[(struct __as_base  &)&a] ={v} {CLOBBER};
  a.m = 0;
  _5 = operator new [] (0);
  a.p = _5;
  return;

}
  • [Bug tree-optimization/92879] [... msebor at gcc dot gnu.org via Gcc-bugs

Reply via email to