With the following code in mind:
int main()
{
int n = 3;
int arr[n] = { 1, 2, 3 };
}
GCC properly errors out in C99 mode error: variable-sized object may not be initialized
and clang gives the same error in C++ mode. However in C++ mode, GCC doesn't complain. This would lead me to believe that it's possibly an extension that's not documented on their C extensions VLA page. I couldn't find a matching bug report either. Can anyone verify if this is an extension or if there's an existing bug report?