This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22238] Awful error messages with virtual functions
- From: "hiraditya at msn dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Feb 2018 06:56:26 +0000
- Subject: [Bug c++/22238] Awful error messages with virtual functions
- Auto-submitted: auto-generated
- References: <bug-22238-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
AK <hiraditya at msn dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hiraditya at msn dot com
--- Comment #24 from AK <hiraditya at msn dot com> ---
The recent error messages look much better. Maybe we can close this.
prog.cpp: In member function ‘void A::bar()’:
prog.cpp:6:23: error: could not convert ‘A::foo()’ from ‘void’ to ‘bool’
void bar() { if (foo()) ; }