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: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2007 23:40:33 -0000
- Subject: [Bug c++/22238] Awful error messages with virtual functions
- References: <bug-22238-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from reichelt at gcc dot gnu dot org 2007-06-17 23:40 -------
Andrew, Gaby's testcase from comment #4 gets an even worse diagnostic
since the merge of the ptr_plus stuff:
=========================================
struct A
{
void foo();
};
struct B : virtual A
{
void bar() { if (foo()) ; }
};
=========================================
bug.cc: In member function 'void B::bar()':
bug.cc:8: error: could not convert '#'pointer_plus_expr' not supported by
dump_expr#<expression error>->A::foo()' to 'bool'
Would you mind having a look?
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238