This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question on compiling error using manipulator gcc 3.2.3
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: ivc 71 <ivc71 at hotmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 11 Jan 2005 08:28:07 -0600
- Subject: Re: Question on compiling error using manipulator gcc 3.2.3
- References: <BAY102-F13176057AC9170DACC9438B5880@phx.gbl>
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