https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116019
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andi Kleen <a...@gcc.gnu.org>: https://gcc.gnu.org/g:899ee4815424a73a2b9d899591fab3fcc4520b61 commit r15-2340-g899ee4815424a73a2b9d899591fab3fcc4520b61 Author: Andi Kleen <a...@gcc.gnu.org> Date: Thu Jul 25 13:54:50 2024 -0700 PR116019: Improve tail call error message The "tail call must be the same type" message is common on some targets with C++, or without optimization. It is generated when gcc believes there is an access of the return value after the call. However usually it does not actually corespond to a type mismatch, but can be caused for other reasons. Make it slightly more vague to be less misleading. gcc/ChangeLog: PR c++/116019 * tree-tailcall.cc (find_tail_calls): Change tail call error message.