https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120497
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 61557 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61557&action=edit Proposed fix for return type checking. Proposed fix which skips over the lvalue for a VAR variable when being type checked against a return type.