[all-commits] [llvm/llvm-project] dfb85c: [Clang][Interp] Diagnose uninitialized ctor of glo...

Takuya Shimizu via All-commits all-commits at lists.llvm.org
Wed Jun 21 03:04:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfb85c3ce09a7bd1a059a3e821390b5111454f9e
      https://github.com/llvm/llvm-project/commit/dfb85c3ce09a7bd1a059a3e821390b5111454f9e
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.h
    M clang/lib/AST/Interp/Interp.cpp
    M clang/test/AST/Interp/cxx20.cpp

  Log Message:
  -----------
  [Clang][Interp] Diagnose uninitialized ctor of global record arrays

This patch adds a check for uninitialized subobjects of global variables that are record arrays.
e.g. `constexpr Foo f[2];`

Reviewed By: tbaeder

Differential Revision: https://reviews.llvm.org/D152548




More information about the All-commits mailing list