g++ compile has many useful extensions not comply with C++ ISO standard.
array is allowd,
array[non-constant-index] is allowed for static allocated array.
If you want to make sure your code can be compiled under the latest C++ standard, pass the option
to the gcc (g++) compiler.