Variable Length Arrays in C++14?
n3639 proposed the adoption of c99 's variable-length-array s into C++14 (at least for the first dimension.) But the latest I've been able to find lists n3639 as: Features in the first CD of C++14, subsequently removed to a Technical Specification Did this ever make it into a Technical Specification, or was it lost in the hand off? The reason for my question is, I've noticed this code: void f(size_t n) { int a[n]; for (size_t i = 0; i < n; ++i) a[i] = 2 * i; sort(a, a + n); } This fails to build in Visual Studio 2015 and in gcc (when the "-pedantic" flag is used.) Works fine under gcc5.1, but