We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC seems to walk down the type stack.
__declspec(align(8)) typedef int I1; __declspec(align(1)) typedef I1 I2; _Static_assert(sizeof(I1) == 4, ""); _Static_assert(_Alignof(I1) == 8, ""); _Static_assert(sizeof(I2) == 4, ""); _Static_assert(_Alignof(I2) == 8, "");
where GCC/Clang don't
typedef int I1 __attribute__((aligned(8))); typedef I1 I2 __attribute__((aligned(1))); _Static_assert(sizeof(I1) == 4, ""); _Static_assert(_Alignof(I1) == 8, ""); _Static_assert(sizeof(I2) == 4, ""); _Static_assert(_Alignof(I2) == 1, "");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MSVC seems to walk down the type stack.
where GCC/Clang don't
The text was updated successfully, but these errors were encountered: