Flang uses positional arguments for messages::say(), such as "%1$s" which is only supported in MS Compilers with the _*printf_p form of the function. This uses a conditional macro to convert the existing vsnprintf used to the one needed in MS-World.
7 tests in D107575 rely on this change.
I understand the intent is to determine the size of the buffer needed, but the [Microsoft documentation for _vsprintf_p][1] says,
But since this is passing a null pointer for the buffer, I'd expect this to abort or return -1. Maybe that's a documentation bug. Has this been tested on Windows?
[1]: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/vsprintf-p-vsprintf-p-l-vswprintf-p-vswprintf-p-l?view=msvc-160#remarks