[all-commits] [llvm/llvm-project] fc2766: [clang][Interp] Diagnose reads from non-const glob...

Timm Baeder via All-commits all-commits at lists.llvm.org
Fri Jan 12 20:51:14 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc2766c1d4776a8e56a7b931a779c57bf7ed3d8b
      https://github.com/llvm/llvm-project/commit/fc2766c1d4776a8e56a7b931a779c57bf7ed3d8b
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2024-01-13 (Sat, 13 Jan 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/Interp.cpp
    M clang/lib/AST/Interp/Interp.h
    M clang/lib/AST/Interp/Opcodes.td
    M clang/test/AST/Interp/arrays.cpp
    M clang/test/AST/Interp/cxx23.cpp
    M clang/test/AST/Interp/literals.cpp

  Log Message:
  -----------
  [clang][Interp] Diagnose reads from non-const global variables (#71919)

This fixes a long-standing FIXME item.

Unfortunately it changes the diagnostic output of the tests added in
`cxx23.cpp`, but they were wrong before and are wrong after, so no big
deal.




More information about the All-commits mailing list