...after which sizeof(GeneratedFreeArrayType) is, correctly, 0.
So, the GCC code generator should use the [0] idion for SPL free arrays - and check whether this can be used by MSVC code generator as well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
C++ backend generates []-style flexible arrays for SPL free array data types. Unlike MSVC, GCC will not compile:
struct GeneratedFreeArrayType
{
ArrayElementType data[];
};
However, CGG will compile:
struct GeneratedFreeArrayType
{
ArrayElementType data[0];
};
...after which sizeof(GeneratedFreeArrayType) is, correctly, 0.
So, the GCC code generator should use the [0] idion for SPL free arrays - and check whether this can be used by MSVC code generator as well.