httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <Ken.C...@Golux.Com>
Subject Re: [Fwd: Problem 2534]
Date Mon, 03 Aug 1998 18:09:09 GMT
Dirk-Willem van Gulik wrote:
> 
> I believe that according to the ANSI standard (page 91)
> if I read it correctly a compiler _may_
> 
>         char foo[] = "hello";
>         char some[] = "one";
>         char bar[] = "hello";
> 
> end up having foo == bar. Or even if you are unlucky
> 
>         char foo[] = "hello world";
>         char bar[] = "world";
> 
> can lead to foo+6 == bar.

Oh sigh.  Hmm.  If this is due to string constant folding, does
changing the compiler optimisation have any effect?

#ken	P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Group member         <http://www.apache.org/>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>

Mime
View raw message