https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122225
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:aaa7ac48bd888ee7bbe95006b29bb2f7eaefd0b4 commit r16-4353-gaaa7ac48bd888ee7bbe95006b29bb2f7eaefd0b4 Author: Richard Biener <[email protected]> Date: Fri Oct 10 08:20:22 2025 +0200 tree-optimization/122225 - fix return stmt verification The following fixes return stmt type verification by properly looking at DECL_RESULT to decide whether that's by reference, not trying to figure that from the actual argument. PR tree-optimization/122225 * tree-cfg.cc (verify_gimple_return): Look at DECL_RESULT for DECL_BY_REFERENCE.
