This is the mail archive of the gcc@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]

Re: initializer bug?


On Tue, Mar 10, 1998 at 10:15:47AM -0500, Neal Becker wrote:
> Isn't this a bug?
> 
> static const int A = 2;
> static const int B = A/2;

That is only valid in C++.  In ISO C, a const int is not a 
compile-time constant expression.


r~


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