[all-commits] [llvm/llvm-project] b9ad0b: [clang] Fix `static_cast` to array of unknown boun...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Thu Jun 20 01:03:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9ad0b6875950a0e161ad31447f796562f55a83a
      https://github.com/llvm/llvm-project/commit/b9ad0b6875950a0e161ad31447f796562f55a83a
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaType.cpp
    M clang/test/SemaCXX/paren-list-agg-init.cpp

  Log Message:
  -----------
  [clang] Fix `static_cast` to array of unknown bound (#96041)

Per P1975R0 an expression like static_cast<U[]>(...) defines the type of
the expression as U[1].

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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list