================
@@ -1200,6 +1215,17 @@ bool createParameters(NewFunction &ExtractedFunc,
// sizeof/alignof/typeof (or similar) on it.
if (DeclInfo.HasUnsafeTypeQueryUseInZone)
return false;
+ // A variable-length array's bound (at any nesting depth, e.g.
+ // the inner dimension of `int A[2][N]`) is an arbitrary
----------------
ArcsinX wrote:
Sorry, I was wrong here, we still problems with C++ VLA too.
E.g. `void extracted(int N, int (&A)[2][N])` compiles ok, but call to such
function is not acceptable by `clang++`:
```cpp
void f() {
int N = 2;
int A[2][N];
extracted(N, A); // Compilation error here
}
https://github.com/llvm/llvm-project/pull/230046
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits