[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: comparing function pointer with int does not produce error



> > void stat ();
> > 
> > static const int success = 0;
> > 
> > void monk ()
> > {
> >   if (stat == success);
> > };
> > 
> 
> warning: comparison between pointer and integer
> 
> is produced here with same compiler, Debian (Sid) updated daily.

Are you sure? Could it be that you are using a C compiler? The bug was
about compiling C++ ...

Regards,
Martin



Reply to: