[all-commits] [llvm/llvm-project] bcc881: [clang] Emit an error if variable ends up with inc...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Tue Aug 29 06:56:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcc881161aeb56ea5a38858fe0007e59f21042c4
      https://github.com/llvm/llvm-project/commit/bcc881161aeb56ea5a38858fe0007e59f21042c4
  Author: Podchishchaeva, Mariya <mariya.podchishchaeva at intel.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/SemaCXX/gh37257.cpp

  Log Message:
  -----------
  [clang] Emit an error if variable ends up with incomplete array type

This adds an error if variable with incomplete type has initializer with
incomplete type, so it is not possible to deduce array size from
initializer.

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

Reviewed By: aaron.ballman, shafik

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




More information about the All-commits mailing list