[Bug c++/22238] Awful error messages with virtual functions
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 27 19:14:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list