conditional expression evaluation at compile time in gcc 4.01
Richard Guenther
richard.guenther@gmail.com
Wed Feb 22 11:20:00 GMT 2006
On 2/22/06, Inder <inderpreetb@gmail.com> wrote:
> Hi All
>
> I am trying to compile 'test.cc' (code attached) with the gcc 4.0.1
> it gives me the following error:
>
> test.cc:19: error: array bound is not an integer constant
Interestingly we end up with the C++ parser producing
&0B->lengthD.1993 == (intD.2 *) (intD.2) &0B->lengthD.1986 ? 10 : 1
as non-constant expression (note the casts have been stripped on the
LHS of the comparison, not the RHS). You should file a bugzilla for this
(or search for an existing one for this).
Richard.
More information about the Gcc
mailing list