Re: Constant pointer to (member) function, indirect call

2005-03-02 Thread Mark Mitchell
Helge Bahmann wrote: On Tue, 1 Mar 2005 Mark Mitchell wrote: Helge Bahmann wrote: void (A::*function2)(void) throw()=&A::function2; (a.*function2)(); however for the call through pointer function2 gcc will always generate an indirect call, i386 assembly for example looks like: Yes, it should

Re: Constant pointer to (member) function, indirect call

2005-03-02 Thread Helge Bahmann
On Tue, 1 Mar 2005 Mark Mitchell wrote: > Helge Bahmann wrote: > > void (A::*function2)(void) throw()=&A::function2; > > (a.*function2)(); > > > however for the call through pointer function2 gcc will always generate an > > indirect call, i386 assembly for example looks like: > > Yes, it sh

Re: Constant pointer to (member) function, indirect call

2005-03-01 Thread Mark Mitchell
Helge Bahmann wrote: void (A::*function2)(void) throw()=&A::function2; (a.*function2)(); however for the call through pointer function2 gcc will always generate an indirect call, i386 assembly for example looks like: Yes, it should be able to do so, but it's not. This is probably somethi