[LLVMbugs] [Bug 12648] New: clang should support __builtin_alignof on types in microsoft mode
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 24 20:20:08 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12648
Bug #: 12648
Summary: clang should support __builtin_alignof on types in
microsoft mode
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Compiling a file that includes mstcpip.h with clang results in this compile
error:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mstcpip.h:575:35:
error: unexpected type name 'IN_ADDR':
expected expression
if (!INET_IS_ALIGNED(Address, IN_ADDR)) {
^
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\mstcpip.h:542:46:
note: expanded from macro
'INET_IS_ALIGNED'
(((ULONG_PTR)Pointer & (__builtin_alignof(Type)-1)) == 0)
^
A smaller version of this is:
typedef struct a {} A;
void f() {
if (__builtin_alignof(A))
;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list