[Bug c++/89901] carat of error not on the return type

jg at jguk dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 1 12:04:00 GMT 2019


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.


More information about the Gcc-bugs mailing list