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 ‘A::foo
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 -
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: implementat
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&action=edit
Patch to fix the case in comment #12 (for next stage 1)
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;
>
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 B::bar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
David Malcolm changed:
What|Removed |Added
CC||dmalcolm at gcc dot gnu.org
--- Comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
--- Comment #18 from Manuel López-Ibáñez 2011-12-01
17:50:25 UTC ---
*** Bug 50817 has been marked as a duplicate of this bug. ***
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
--- Comment #17 from Jonathan Wakely 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 ?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238
Manuel López-Ibáñez changed:
What|Removed |Added
Status|ASSIGNED|NEW
CC|
--- 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
|
| b
--- 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*)(
((B*)thi
--- 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.
--
http://gcc.gnu.
--- 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
{
voi
14 matches
Mail list logo