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

2018-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #25 from Jonathan Wakely --- (In reply to AK from comment #24) > 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

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

2018-02-18 Thread hiraditya at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 AK changed: What|Removed |Added CC||hiraditya at msn dot com --- Comment #24 from AK

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

2016-01-27 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #22 from David Malcolm --- (In reply to Manuel López-Ibáñez from comment #20) [...] > I maintain my opinion that any user-facing diagnostic using %qE is > potentially broken. Thanks; I'm inclined to agree. Notes to self:

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

2016-01-27 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #21 from Manuel López-Ibáñez --- (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; >

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

2016-01-27 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

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

2016-01-27 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #20 from Manuel López-Ibáñez --- (In reply to David Malcolm from comment #19) > Is it time to close this one out as fixed? with gcc HEAD 6.0.0 20160127 and the testcase in comment #12, I get: prog.cc: In member function 'void

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

2016-01-27 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #23 from David Malcolm --- Created attachment 37496 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37496=edit Patch to fix the case in comment #12 (for next stage 1)

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

2011-12-01 Thread manu at gcc dot gnu.org
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

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

2011-12-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #17 from Jonathan Wakely redi at gcc dot gnu.org 2011-12-01 17:39:24 UTC --- (In reply to comment #16) I think this is a duplicate of another PR I cannot find PR 50817 ?

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

2011-12-01 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238 --- Comment #18 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-12-01 17:50:25 UTC --- *** Bug 50817 has been marked as a duplicate of this bug. ***

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

2007-08-21 Thread reichelt at gcc dot gnu dot org
--- Comment #14 from reichelt at gcc dot gnu dot org 2007-08-21 19:56 --- The pointer_plus_exprt stuff has been fixed. We are now back to error messages like bug.cc: In member function 'void B::bar()': bug.cc:4: error: could not convert '(((A*)this) + ((unsigned int)(*(int*)(

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

2007-08-21 Thread gdr at cs dot tamu dot edu
--- Comment #15 from gdr at cs dot tamu dot edu 2007-08-21 20:27 --- Subject: Re: Awful error messages with virtual functions reichelt at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The pointer_plus_exprt stuff has been fixed. | | We are now back to error messages like | |

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

2007-06-17 Thread reichelt 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 {

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

2007-06-17 Thread pinskia at gcc dot gnu dot org
--- Comment #13 from pinskia at gcc dot gnu dot org 2007-06-17 23:42 --- Would you mind having a look? I was going to fix the pretty printing of pointer_plus_expr for C++ after I returned from Japan. I already have a testcase which is better than the one here. --