https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89901
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > (In reply to Jonny Grant from comment #0) > > Could g++ indicate the carat on returned var? > > It is doing. > > The declaration of a variable 'const char** a' is not "the returned var". And it's also not "the return type" as the bug summary says. The fact that return type of f() can't be used in that context is best indicated by marking f() itself.