problem returning function pointers
Ben Woodard
ben@valinux.com
Thu Mar 30 11:09:00 GMT 2000
This should be easy to reproduce. The compiler seems to get confused
when trying to handle functions that return function pointers.
For example I want to declare a function:
void (*)(void *,const unsigned char*) to_ipaddr_funct((*fp)(void));
but the compiler doesn't seem to like that and so I am forced to use this:
typedef void (*FP_RETURNED)(void *,const unsigned char*);
FP_RETURNED to_ipaddr_funct((*fp)(void));
gcc 2.95.2
-ben
More information about the Gcc-bugs
mailing list