Hi,
[Use a fixed width font to view this message]
MSVC MinGW GCC
Alignment of __int64: 8 8 8 Size of __int64: 8 8 8
Alignment of large_int: 8 8 4 Size of large_int: 8 8 8
Alignment of container1: 8 8 4 Size of container1: 16 16 12
Alignment of container2: 8 8 4 Size of container2: 16 16 12
Alignment of container3: 8 8 4 Size of container3: 8 8 8
Clearly GCC is the odd one out. When a double is embedded in a structure GCC does not adjust the alignment of the structure to the size of a double.
So, should we add -malign-double to the compiler flags?
-Hans