https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123513
--- Comment #4 from Aaron Puchert <aaron.puchert at sap dot com> ---
(In reply to Andrew Pinski from comment #3)
> So it is warning on "dead" code.
I've reduced it a bit too much, having the delete being dead was not the
intention.
> But changing the testcase slightly, we get the warning earlier:
> ```
> struct C { C(); };
> ```
>
> But this is still a bogus warning.
That's a better reproducer. The point is the mismatch, not that the delete
should be dead.