https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Priority|P3 |P2
Last reconfirmed| |2021-03-03
Status|UNCONFIRMED |NEW
Target Milestone|--- |10.3
Summary|invalid unused result |[10/11 Regression] invalid
| |unused result
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Caused by r10-4001-g8ad0c477e888d34c8fc6dbcc008ef66505071d65
PR88146 fixed this for arm before, but then r10-4001 when implementing P1771R1
readded this for constructors. It is now needed for ctors too, but needs to
differentiate for them between the cases P1771R1 requires and normal
targetm.cxx.cdtor_returns_this construction.