Comment 6 for bug 1401202

Revision history for this message
DaanS (daanschulpen) wrote :

I'm not sure how a change of path in gcc could cause this issue. clang++ *should* provide ::max_align_t itself in c++11 mode.

http://reviews.llvm.org/file/data/sw37fgtbupwhetydgazl/PHID-FILE-wprxzvc5yn4ylp7xwt6t/201729.diff:
+#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
+typedef struct {
+ long long __clang_max_align_nonce1
+ __attribute__((__aligned__(__alignof__(long long))));
+ long double __clang_max_align_nonce2
+ __attribute__((__aligned__(__alignof__(long double))));
+} max_align_t;
+#define __CLANG_MAX_ALIGN_T_DEFINED
+#endif
+

I've personally verified that this fix is included in the upstream tag RELEASE_350/final.