[all-commits] [llvm/llvm-project] b88a9f: [clang][ExprConst] Fix crash on uninitialized arra...

Takuya Shimizu via All-commits all-commits at lists.llvm.org
Thu Oct 26 22:11:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b88a9f9670bb71e1eadeea76b16be6b953714883
      https://github.com/llvm/llvm-project/commit/b88a9f9670bb71e1eadeea76b16be6b953714883
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/Interp/Interp.cpp
    M clang/test/SemaCXX/constant-expression-cxx2a.cpp
    M clang/test/SemaCXX/eval-crashes.cpp

  Log Message:
  -----------
  [clang][ExprConst] Fix crash on uninitialized array subobject (#67817)

https://reviews.llvm.org/D146358 was assuming that all subobjects have
their own name (`SubobjectDecl`), but it was not true for array
elements.

Fixes https://github.com/llvm/llvm-project/issues/67317




More information about the All-commits mailing list