This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Question on compiling error using manipulator gcc 3.2.3


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


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