Displaying 2 results from an estimated 2 matches for "__stddef_max_align_t".
2019 Oct 17
2
Static assert fails when compiler for i386
...ax_align_t), "over
aligned!");
}
$clang++ -m32
error: static_assert failed due to requirement
'std::alignment_of<int4>::value <= alignof(max_align_t)' "over aligned
it goes smooth when compile for x86_64.
Following changes fixes this.
diff --git a/clang/lib/Headers/__stddef_max_align_t.h
b/clang/lib/Headers/__stddef_max_align_t.h
index e3b439285d0..46f705a09c3 100644
--- a/clang/lib/Headers/__stddef_max_align_t.h
+++ b/clang/lib/Headers/__stddef_max_align_t.h
@@ -21,6 +21,10 @@ typedef struct {
__attribute__((__aligned__(__alignof__(long long))));
long double __clang_ma...
2019 Aug 03
3
conflicting builtins in clang with musl (stddef.h)
...In file included from test.cpp:2:
In file included from /bin/../include/c++/v1/limits:106:
In file included from /bin/../include/c++/v1/type_traits:406:
In file included from /bin/../include/c++/v1/cstddef:45:
In file included from /lib/clang/8.0.0/include/stddef.h:118:
/lib/clang/8.0.0/include/__stddef_max_align_t.h:40:3: error: typedef
redefinition with different types ('struct max_align_t' vs 'struct
max_align_t')
} max_align_t;
^
/include/bits/alltypes.h:49:54: note: previous definition is here
typedef struct { long long __ll; long double __ld; } max_align_t;...