[PATCH] D23325: [WIP] Binding of references to packed fields

Roger Ferrer Ibanez via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 09:10:51 PDT 2016


rogfer01 created this revision.
rogfer01 added reviewers: aaron.ballman, rsmith.
rogfer01 added subscribers: cfe-commits, rsmith.

This is a WIP for PR28571.

As suggested by @rsmith it introduces a new ObjectKind for PackedField's modeled similarly in spirit to BitField's. If the reference is const, the binding is done using a temporary otherwise an error is diagnosed.

https://reviews.llvm.org/D23325

Files:
  include/clang/AST/Decl.h
  include/clang/AST/Expr.h
  include/clang/AST/Stmt.h
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Basic/Specifiers.h
  lib/AST/ASTDumper.cpp
  lib/AST/Decl.cpp
  lib/CodeGen/CGCall.cpp
  lib/Sema/SemaCast.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaExprMember.cpp
  lib/Sema/SemaFixItUtils.cpp
  lib/Sema/SemaInit.cpp
  test/SemaCXX/bind-packed-member.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23325.67360.patch
Type: text/x-patch
Size: 12127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160809/d2134d87/attachment-0001.bin>


More information about the cfe-commits mailing list