aaron.ballman added inline comments.
> SemaChecking.cpp:11284 > + if (ND->getName().empty()) { > + if (const auto *TypedefDecl = m.RD->getTypedefNameForAnonDecl()) > + ND = TypedefDecl; Please don't use `auto` here since the type is not spelled directly in the initialization. > address-packed.c:187 > + return &s->x; // expected-warning {{packed member 'x' of class or > structure 'TypedefUnionArguable'}} > +} Can you add a test along the lines of: struct S { union { char c; int x; } __attribute__((packed)); }; int *ugh(S *s) { return &s->x; } https://reviews.llvm.org/D25106 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits