This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/22238] Awful error messages with virtual functions


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!)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]