3 ms·
Hmm, is there any other major blocker in modern MSVC (that supports C11) other than variable size local arrays to be considered C99 compatible? (Designated init
by whizzter 6y ago
Hmm, is there any other major blocker in modern MSVC (that supports C11) other than variable size local arrays to be considered C99 compatible? (Designated initializer fields came into C++20 so they were forced to put that in). Blocking var-sized arrays might've been a blessing in disguise from a security standpoint.
- user5994461 6y agoVariables can only be declared at the beginning of a block in C89. In my opinion that's the main difference between strict C89 and C99. MSVC is very strict about that and there's no workaround to allow it.
- whizzter 6y agoThat's not really a compiler limitation though (since in C++ mode it will happily handle it) but rather a validation/mode thing. Since they now support C11, I'm sure that part is removed if you select C11 mode?