[all-commits] [llvm/llvm-project] e91ea1: [Clang] Disallow VLA type compound literals (#91891)

Jim M. R. Teichgräber via All-commits all-commits at lists.llvm.org
Wed May 15 20:38:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e91ea1b5d88805ebf7657da57ca6a7577374e4ad
      https://github.com/llvm/llvm-project/commit/e91ea1b5d88805ebf7657da57ca6a7577374e4ad
  Author: Jim M. R. Teichgräber <a at teichgraeber.digital>
  Date:   2024-05-16 (Thu, 16 May 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/C/C2x/n2900_n3011.c
    M clang/test/C/C2x/n2900_n3011_2.c
    M clang/test/Sema/compound-literal.c

  Log Message:
  -----------
  [Clang] Disallow VLA type compound literals (#91891)

C99-C23 6.5.2.5 says: The type name shall specify an object type or an
array of unknown size, but not a variable length array type.

Fixes #89835.



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