Closed
Description
This is the smallest case I got, based on clangs internal definition of max_align_t
, in the header __stddef_max_align_t.h
used in the libc header stddef
:
typedef struct {
long double __clang_max_align_nonce2
__attribute__((__aligned__(__alignof__(long double
))));
} max_align_t;
Produces the following error:
thread 'header::bindgen_test_layout_max_align_t'
panicked at 'assertion failed: `(left == right)`
left: `8`,
right: `16`: Size of: max_align_t', src/header.rs:10:5
system info:
rustc 1.27.0-nightly
binary: rustc
commit-hash: unknown
commit-date: unknown
host: aarch64-linux-android
release: 1.27.0-nightly
LLVM version: 6.0
libclang: 6.0.0-2
bindgen 0.37.0
The commit is unknown because I'm using the rustc-nightly package for termux from the "its-pointless" repository.