================
@@ -54,3 +54,12 @@ void vla(int n) {
   (void)(int[size]){1,2,3}; // expected-error {{compound literal cannot be of 
variable-length array type}}
   (void)(int[size]){1,2,3,4,5}; // expected-error {{compound literal cannot be 
of variable-length array type}}
 }
+
+// GH54014: a non-const file-scope compound literal may be modified at runtime,
+// so its value can't be read through a pointer in a constant initializer.
+// FIXME: The bytecode interpreter still folds this read.
----------------
Prajwal-kp-18 wrote:

Done.

https://github.com/llvm/llvm-project/pull/241126
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to