[all-commits] [llvm/llvm-project] d19428: [clang] Consider array filler in MaybeElementDepen...

Timm Bäder via All-commits all-commits at lists.llvm.org
Thu Aug 4 22:44:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1942855c4317c61f9fae173afa2cbe1076c3c4c
      https://github.com/llvm/llvm-project/commit/d1942855c4317c61f9fae173afa2cbe1076c3c4c
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/SemaCXX/constexpr-array-init.cpp

  Log Message:
  -----------
  [clang] Consider array filler in MaybeElementDependentArrayfiller()

Any InitListExpr may have an array filler and since we may be evaluating
the array filler as well, we need to take into account that the array
filler expression might make the InitListExpr element dependent.

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

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




More information about the All-commits mailing list