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: Nathan Sidwell <nathan at acm dot org>
- Date: Fri, 14 Jan 2000 09:49:33 +0000
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <14459.39828.510347.272363@rules> <00Jan12.113909est.14347@ed209.radionics.com>
- Reply-To: nathan at compsci dot bristol dot ac dot uk
Gary Beckmann 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
Try with gcc 2.95.2, I recall several of bugs of this kind being
removed.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
Never hand someone a gun unless you are sure where they will point it
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk