http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55410
Bug #: 55410 Summary: [asan] bit field accesses are not instrumented Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: konstantin.s.serebry...@gmail.com CC: dseke...@redhat.com, dvyu...@google.com, ja...@gcc.gnu.org, w...@gcc.gnu.org [There is no rush with this, I just want this issue to be recorded] % cat bitf.c typedef struct { int a:12; int b:20; } foo; int geta(foo *f) { return f->a; } % clang -fsanitize=address -O2 -S -o - bitf.c 2>&1 | grep __asan_report callq __asan_report_load4 % gcc -faddress-sanitizer -O2 -S -o - bitf.c 2>&1 | grep __asan_report %