GNOME Bugzilla – Bug 522003
Allocation of array on stack
Last modified: 2008-03-15 00:46:48 UTC
Is it possible to do it or it would provide inconsistency in language? I mean something like: int[] my_ints = new int[1024] on stack; -> int my_ints[1024]; or even (via calloc): int[] my_ints = new int[my_function ()] on stack; -> int my_ints_length = my_function (); int *my_ints = (int *)alloca (my_ints_length); It should improve the locality of code.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 492481 ***