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.
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/ sw37fgtbupwhety dgazl/PHID- FILE-wprxzvc5yn 4ylp7xwt6t/ 201729. diff: max_align_ nonce1 _((__aligned_ _(__alignof_ _(long long)))); max_align_ nonce2 _((__aligned_ _(__alignof_ _(long double)))); MAX_ALIGN_ T_DEFINED
+#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
+typedef struct {
+ long long __clang_
+ __attribute_
+ long double __clang_
+ __attribute_
+} max_align_t;
+#define __CLANG_
+#endif
+
I've personally verified that this fix is included in the upstream tag RELEASE_350/final.