[PATCH] D23657: Remove some false positives when taking the address of packed members
Joerg Sonnenberger via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 14 14:42:28 PDT 2016
joerg added a comment.
It seems like on-stack arrays still don't work?
#include <inttypes.h>
struct test {
uint32_t x;
} __attribute__((__packed__));
int main(void) {
struct test __attribute__((__aligned__(4))) a[4];
uint32_t *p32;
p32 = &a[0].x;
}
https://reviews.llvm.org/D23657
More information about the cfe-commits
mailing list