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: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2011 17:27:01 +0000
- Subject: [Bug c++/22238] Awful error messages with virtual functions
- Auto-submitted: auto-generated
- References: <bug-22238-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
CC| |jason at gcc dot gnu.org,
| |manu at gcc dot gnu.org
AssignedTo|gdr at gcc dot gnu.org |unassigned at gcc dot
| |gnu.org
--- Comment #16 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-12-01 17:27:01 UTC ---
I think this is a duplicate of another PR I cannot find, but everything boils
down to "please kill %qE and stop pretty-printing expressions". Behold the
beauty of clang:
pr22238.cc:8:20: error: value of type 'void' is not contextually convertible to
'bool'
void bar() { if (foo()) ; }
^~~~~
1 error generated.
(it looks even prettier with the default colors!)