https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238

--- Comment #21 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #19)
> /tmp/test2.cc:9:24: error: return-statement with a value, in function
> returning 'void' [-fpermissive]
>      return P->bar() + *P;
>                         ^

And that location is terrible, but that is a different issue.

Reply via email to