Question on compiling error using manipulator gcc 3.2.3

Eljay Love-Jensen eljay@adobe.com
Tue Jan 11 14:27:00 GMT 2005


Hi ivc 71,

The error you are seeing is the same as this error (which, I hope, clarifies):

int foo(int x) { return 1; }
int foo(char c) { return 2; }

int main()
{
     typedef int (*fn)(int x);
     fn fnptr = foo;
     if(fnptr == foo) // error here; which foo?
         return 5;
     return 6;
}

HTH,
--Eljay



More information about the Gcc-help mailing list