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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|12.4.0, 13.3.0, 14.2.0      |11.1.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
At first I thought this was introduced by the patch which fixed PR 109804 but
that was fixed in GCC 12.4.0 and this only shows up in GCC 12.5.0+.

Oh the IR is different between GCC 12.4.0 and 12.5.0.

```
  _8 = 0;
  if (_8 != 0)
    goto <bb 4>; [INV]
  else
    goto <bb 6>; [INV]

  <bb 4> :
  operator delete<1024> (_6, &alloc);
```

Is in GCC 12.5.0.
So it is warning on "dead" code.


But changing the testcase slightly, we get the warning earlier:
```
struct C { C(); };
```

But this is still a bogus warning.

Reply via email to