[clang] [clang] Fix Variable Length Array `_Countof` Crash (PR #154627)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 22 05:49:00 PDT 2025
================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -std=c2y -verify %s
+// RUN: %clang_cc1 -std=c2y -verify -fexperimental-new-constant-interpreter %s
+// expected-no-diagnostics
+
+void gh152826(char (*a)[*][5], int (*x)[_Countof (*a)]);
----------------
AaronBallman wrote:
I thought there was a way we could end up having to evaluate here, but now I think you're right, that doesn't seem to be possible. So nevermind! :-)
https://github.com/llvm/llvm-project/pull/154627
More information about the cfe-commits
mailing list