On Tue, Oct 23, 2001 at 04:26:16PM +0100, [EMAIL PROTECTED] wrote:
> 
> >Submitter-Id:        net
> >Originator:  Andy Chittenden
> >Organization:        BlueArc UK Ltd
> >Confidential:        no
> >Synopsis:    comparing function pointer with int does not produce error
> >Severity:    
> >Priority:    
> >Category:    c++
> >Class:               
> >Release:     3.0.2 20011014 (Debian prerelease) (Debian testing/unstable)
> >Environment:
> System: Linux andy-boco 2.4.12 #6 Mon Oct 15 11:55:58 BST 2001 i686 unknown
> Architecture: i686
> 
>       
> host: i386-pc-linux-gnu
> build: i386-pc-linux-gnu
> target: i386-pc-linux-gnu
> configured with: ../src/configure -v 
> --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr 
> --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as 
> --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls 
> --without-included-gettext --disable-checking --enable-threads=posix 
> --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
> >Description:
>       The following code does not produce an error when one is expected.
> 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.
-- 
Gordon Sadler


Reply via email to