public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
@ 2006-04-21 20:09 ` reichelt at gcc dot gnu dot org
2006-04-23 1:15 ` patchapp at dberlin dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-21 20:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-04-21 20:09 -------
Testing a patch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
2006-04-21 20:09 ` [Bug c++/8171] Cannot compare pointer to member function of base and derived class reichelt at gcc dot gnu dot org
@ 2006-04-23 1:15 ` patchapp at dberlin dot org
2007-10-30 7:20 ` patchapp at dberlin dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-04-23 1:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2006-04-23 01:15 -------
Subject: Bug number PR c++/8171
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00861.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
2006-04-21 20:09 ` [Bug c++/8171] Cannot compare pointer to member function of base and derived class reichelt at gcc dot gnu dot org
2006-04-23 1:15 ` patchapp at dberlin dot org
@ 2007-10-30 7:20 ` patchapp at dberlin dot org
2007-12-01 8:57 ` aaw at gcc dot gnu dot org
2007-12-01 9:08 ` aaw at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-10-30 7:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from patchapp at dberlin dot org 2007-10-30 07:20 -------
Subject: Bug number PR c++/8171
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-10/msg01789.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2007-10-30 7:20 ` patchapp at dberlin dot org
@ 2007-12-01 8:57 ` aaw at gcc dot gnu dot org
2007-12-01 9:08 ` aaw at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: aaw at gcc dot gnu dot org @ 2007-12-01 8:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from aaw at gcc dot gnu dot org 2007-12-01 08:57 -------
Subject: Bug 8171
Author: aaw
Date: Sat Dec 1 08:56:55 2007
New Revision: 130554
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130554
Log:
PR c++/8171
gcc/cp/
* typeck.c (build_binary_op): Add conversion of pointers to function
members appearing as operands to the equality operators.
gcc/testsuite/
* g++.dg/conversion/ptrmem9.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/conversion/ptrmem9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2007-12-01 8:57 ` aaw at gcc dot gnu dot org
@ 2007-12-01 9:08 ` aaw at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: aaw at gcc dot gnu dot org @ 2007-12-01 9:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from aaw at gcc dot gnu dot org 2007-12-01 09:08 -------
Fixed by revision 130554.
--
aaw at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <20021008110600.8171.zyzstar@ibl.sk>
2003-07-22 19:00 ` pinskia at physics dot uc dot edu
2003-07-22 20:23 ` bangerth at dealii dot org
@ 2004-11-06 3:17 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 3:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 03:17 -------
PR 18040 shows a testcase where we ICE and the problem is related to this testcase.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |18040
nThis| |
Last reconfirmed|2004-08-05 18:40:09 |2004-11-06 03:17:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <20021008110600.8171.zyzstar@ibl.sk>
2003-07-22 19:00 ` pinskia at physics dot uc dot edu
@ 2003-07-22 20:23 ` bangerth at dealii dot org
2004-11-06 3:17 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2003-07-22 20:23 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
------- Additional Comments From bangerth at dealii dot org 2003-07-22 20:23 -------
Just for more references into the standard: 4.11/2 describes the conversion
from pointer-to-member-of-base to ptm-of-derived. 5.10/2 states that this
conversion has to happen.
Just out of curiosity: the conversion is really not all that trivial, since
when you cast &B::f to &D::f you may need to use a thunk to adjust the
this pointer, right? Or is this implemented by having a pointer-to-
member-type be a tuple of pointer and this-adjustment?
W.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/8171] Cannot compare pointer to member function of base and derived class
[not found] <20021008110600.8171.zyzstar@ibl.sk>
@ 2003-07-22 19:00 ` pinskia at physics dot uc dot edu
2003-07-22 20:23 ` bangerth at dealii dot org
2004-11-06 3:17 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-22 19:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8171
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at physics dot uc
| |dot edu
Last reconfirmed|2003-05-03 00:00:00 |2003-07-22 19:00:10
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-22 19:00 -------
Here is a shorter one that can be able to put in gcc's testsuite:
extern "C" void abort();
extern "C" void exit(int);
struct A
{
int f() {}
};
struct B : A
{
};
int main()
{
int (A::*pa)() = &A::f;
int (B::*pb)() = &B::f;
if(! (pa == pb))
abort();
exit(0);
}
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-12-01 9:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-8171-3383@http.gcc.gnu.org/bugzilla/>
2006-04-21 20:09 ` [Bug c++/8171] Cannot compare pointer to member function of base and derived class reichelt at gcc dot gnu dot org
2006-04-23 1:15 ` patchapp at dberlin dot org
2007-10-30 7:20 ` patchapp at dberlin dot org
2007-12-01 8:57 ` aaw at gcc dot gnu dot org
2007-12-01 9:08 ` aaw at gcc dot gnu dot org
[not found] <20021008110600.8171.zyzstar@ibl.sk>
2003-07-22 19:00 ` pinskia at physics dot uc dot edu
2003-07-22 20:23 ` bangerth at dealii dot org
2004-11-06 3:17 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).