https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/152104

This test case breaks when ignoring trivial CXXConstructExprs of array types, 
so make sure we don't do that.

>From 3c1e088032fb1ef34fb8b64447b4e00adfa11493 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Tue, 5 Aug 2025 10:46:42 +0200
Subject: [PATCH] [clang][bytecode][NFC] Add a c++11 test test

This test case breaks when ignoring trivial CXXConstructExprs of array
types, so make sure we don't do that.
---
 clang/test/AST/ByteCode/cxx11.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/clang/test/AST/ByteCode/cxx11.cpp 
b/clang/test/AST/ByteCode/cxx11.cpp
index f5a2abbbe7813..bb8aca27eb965 100644
--- a/clang/test/AST/ByteCode/cxx11.cpp
+++ b/clang/test/AST/ByteCode/cxx11.cpp
@@ -309,3 +309,12 @@ int somefunc() {
                                                   // both-note {{reference to 
'non_global' is not a constant expression}}
 }
 
+namespace PR19010 {
+  struct Empty {};
+  struct Empty2 : Empty {};
+  struct Test : Empty2 {
+    constexpr Test() {}
+    Empty2 array[2];
+  };
+  void test() { constexpr Test t; }
+}

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

Reply via email to