[Mlir-commits] [clang] [mlir] [Clang]Check for a valid Index in array before getting it (PR #172399)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jan 1 08:35:07 PST 2026
================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 --std=c++17 -fexperimental-new-constant-interpreter -verify=experiment %s
+// RUN: %clang_cc1 --std=c++17 -triple x86_64-pc-win32 -verify=experiment %s
+// RUN: %clang_cc1 --std=c++17 -triple x86_64-pc-linux -verify=none %s
+
+#ifndef _MSC_VER
+// none-no-diagnostics
----------------
Sirraide wrote:
I don’t think this is right, we *should* emit a diagnostic about this even with the old AST-based evaluator. Also, why does being on Windows matter here at all?
https://github.com/llvm/llvm-project/pull/172399
More information about the Mlir-commits
mailing list