[all-commits] [llvm/llvm-project] af189c: Fix constant evaluation of zero-initialization of ...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu Oct 22 17:04:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af189c8ab113668434eae5c71f174613a9e64625
      https://github.com/llvm/llvm-project/commit/af189c8ab113668434eae5c71f174613a9e64625
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/SemaCXX/constant-expression-cxx11.cpp

  Log Message:
  -----------
  Fix constant evaluation of zero-initialization of a union whose first
FieldDecl is an unamed bitfield.

Unnamed bitfields aren't non-static data member, so such a bitfield
isn't actually the first non-static data member.




More information about the All-commits mailing list