Fix diagnostics for never-defined inline and nested functions (PR c/88720, PR c/88726).