[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:34:29 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18126
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |---
--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #1)
> From what I can tell, cl does not ignore __declspec(align) on record
> declarations from my tests. Eg)
[...]
> struct __declspec(align(16)) S {
> int a;
> };
That's a definition, not just a declaration, though. Try this:
struct __declspec(align(16)) S;
struct S {};
static_assert(__alignof(S) == 1, "");
... the assert passes in VS, fails in clang-cl.
I believe this was a tracking bug so Warren didn't forget to fix these things;
reopening it on that basis.
--
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/baca8210/attachment.html>
More information about the llvm-bugs
mailing list