arocc
arocc copied to clipboard
MSVC style zero length arrays error.
Neither Clang, nor ARO like this code
typedef int J[];
struct J_size {
char a[sizeof(J)+1];
char b;
};
Both error with invalid application of 'sizeof' to an incomplete type 'J' (aka 'int []') even when with -fms-extensions -fms-compatibility set.
But MSVC thinks it's valid:
https://godbolt.org/z/arzxq19sj