I wouldn't expect VLAs to ever work with C++ in the standard since there are already containers in the STL that you can use for them. The GCC compilers currently offer it, although the standard does not provide for it.
Since the question is only tagged as C++ here, I would advise against using it as it's going off the standard path. Since VLAs have been available in C since C99 (1999), I wouldn't wait for it after more than 20 years in C++.
GCC had VLA as an extension before C99, one that also extends into its C++ dialect.
en.wikipedia.org/wiki/Variable-length_array
VLAs are C-specific and are not adopted by the C++ standard. C++ provides container classes that allow for variable fields.
de.wikipedia.org/wiki/Variable_Length_Array (german version)
std::vector <int> a(n);
for (int i = 0; i<n; i++) {
std::cin >> a[i];
}