This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem returning function pointers
- To: gcc-bugs at gcc dot gnu dot org
- Subject: problem returning function pointers
- From: Ben Woodard <ben at valinux dot com>
- Date: Wed, 29 Mar 2000 15:55:55 -0800
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