Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Gabriel Dos Reis
"Richard Guenther" <[EMAIL PROTECTED]> writes: [...] | You should file a bugzilla for this (or search for an existing one | for this). why do you want him to fill a PR about that when his program isn't valid? -- Gaby

Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Andrew Haley
Inder writes: > 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 > > so it is not able to evaluate the conditional expression in gcc 4.0.1, > while this is bein

Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Richard Guenther
On 2/22/06, Inder <[EMAIL PROTECTED]> 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