Clang: 3.8.0 MSVC: 19.00.24215.1 for x64
What could be causing this strange difference between the compilers? MSVC reports 12, but Clang reports 8! What's the correct/expected behaviour here? Does the standard have anything to say about this?
enum class CodeCompletionDeclKind {};
struct SwiftSemanticToken {
unsigned ByteOffset;
unsigned Length : 24;
CodeCompletionDeclKind Kind : 6;
bool IsRef : 1;
bool IsSystem : 1;
};
static_assert(sizeof(SwiftSemanticToken) == 8, "Too big");
int main()
{
std::cout << "Hello, world!\n";
}