[LLVMbugs] [Bug 18126] [ms-abi] Clang doesn't treat declspec on record declarations correctly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 27 19:19:01 PST 2014


Aaron Ballman <aaron at aaronballman.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |aaron at aaronballman.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Aaron Ballman <aaron at aaronballman.com> ---
Filing this as several bug reports would certainly make it easier to
understand, and more actionable...

>From what I can tell, cl does not ignore __declspec(align) on record
declarations from my tests. Eg)

#include <stdio.h>

struct __declspec(align(16)) S {
  int a;

struct S2 {
  __declspec(align(16)) int a;

struct S3 {
  int a;

int main(void) {
  printf("%d, %d, %d\n", __alignof(S), __alignof(S2), __alignof(S3));
  return 0;

prints 16, 16, 4 in MSVC 12 and clang ToT.

I am going to close this as WORKSFORME, but encourage you to file new reports
(covering just one bug per report) with test cases if there are still issues on

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140128/e8e46551/attachment.html>

More information about the llvm-bugs mailing list