https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89901
--- Comment #4 from Jonny Grant <jg at jguk dot org> --- (In reply to Jonathan Wakely from comment #2) > (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. I can see your point, so f() probably is the best place to indicate. I'll close the ticket.