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]

initializer bug?


Isn't this a bug?

------
Test.c:
static const int A = 2;
static const int B = A/2;
------

gcc -c Test.c
Test.c:2: initializer element is not constant

Sure looks constant to me.

This is egcs-1.0.1 i686 linux


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