[clang] [clang][Sema] Diagnose use of variably modified type alias from enclosing scope in local class (PR #183933)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 10:35:17 PDT 2026
================
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -std=gnu++20 -emit-llvm %s -o - >/dev/null
+
+int f() { return 1; }
+
+int test0() {
+ using X = int[f()];
+
+ struct S {
+ S() {
+ X x;
----------------
efriedma-quic wrote:
Yes, drop the codegen patch, both the code change and the testcase.
https://github.com/llvm/llvm-project/pull/183933
More information about the cfe-commits
mailing list