This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ choosing wrong function for Xt callback
- To: Gary Beckmann <gary at radionics dot com>
- Subject: Re: g++ choosing wrong function for Xt callback
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 13 Jan 2000 17:04:21 -0200
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <14459.39828.510347.272363@rules> <00Jan12.113909est.14347@ed209.radionics.com>
On Jan 12, 2000, Gary Beckmann <gary@radionics.com> wrote:
> A convention introduced by Young for dealing with callbacks from X11
> in C++ involves using an overload of a static member function and a
> member function. The "this" pointer is passed as the client data.
> Unfortunately the version of egcs I have seems to ignore the static
> member function and willfully use the wrong function. Setting
> breakpoints in the code confirms that the wrong function is being
> called.
Can you please post a simpler code snippet that demonstrates the
problem? It seems that your message has lost some headers somehow,
because the attachment doesn't show up as such at my end.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them