http://llvm.org/bugs/show_bug.cgi?id=19414

            Bug ID: 19414
           Summary: MS ABI: Layout incompatibility for aligned bitfield
                    following normal bitfield of same size class
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

consider:
extern "C" int printf(const char *, ...);
struct A {
  short : 4;
  __declspec(align(16)) short : 4;
};
int main() {
  printf("sizeof(A): %Iu\n", sizeof(A));
}

msvc:
sizeof(A): 2

clang:
sizeof(A): 16

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to