This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem returning function pointers


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]