June 20, 2002 Assertion Failure | ||||
---|---|---|---|---|
| ||||
Forgive me if this has been brought up before, but when I try to declare an array (static or dynamic) initialized with a few elements and compile, I get: Assertion failure: 'ie' on line 253 in file 'declaration.c' abnormal program termination My original source was longer, but the following chunk of code triggers the error on my system: int main(char[][] args) { int[] nums = {1,2,3,4,5}; return 0; } Is this a bug or am I missing something? |
June 20, 2002 Re: Assertion Failure | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan Andrew | It's a known bug. Workaround: Make the array static or don't initialize it. Sean "Jonathan Andrew" <jon@ece.arizona.edu> wrote in message news:3D115E12.8000205@ece.arizona.edu... > Forgive me if this has been brought up before, but when I try to declare an array (static or dynamic) initialized with a few elements and compile, I get: > > Assertion failure: 'ie' on line 253 in file 'declaration.c' > > abnormal program termination > > My original source was longer, but the following chunk of code triggers the error on my system: > > int main(char[][] args) > { > int[] nums = {1,2,3,4,5}; > return 0; > } > > Is this a bug or am I missing something? |
Copyright © 1999-2021 by the D Language Foundation