https://github.com/NekoCdr updated
https://github.com/llvm/llvm-project/pull/87274
>From 1dfb9414a28f99024a8abe36b0b10a4d91eae573 Mon Sep 17 00:00:00 2001
From: Yuri Istomin
Date: Mon, 1 Apr 2024 22:02:42 +0300
Subject: [PATCH 1/3] [clang] Add test for CWG1606
---
clang/test/CXX/drs/dr16xx.cpp | 11 +++
1 file changed, 11 insertions(+)
diff --git a/clang/test/CXX/drs/dr16xx.cpp b/clang/test/CXX/drs/dr16xx.cpp
index 766c90d3bc7bda..cf05cc2291e6ff 100644
--- a/clang/test/CXX/drs/dr16xx.cpp
+++ b/clang/test/CXX/drs/dr16xx.cpp
@@ -35,6 +35,17 @@ void g() {
}
} // namespace dr1601
+namespace dr1606 { // dr1606: 3.1
+#if __cplusplus >= 201103L
+ std::size_t test() {
+int i = 1;
+int j = 1;
+auto f = [=]{ return i + j;};
+return sizeof(f);
+ }
+#endif
+} // namespace dr1606
+
namespace dr1611 { // dr1611: dup 1658
struct A { A(int); };
struct B : virtual A { virtual void f() = 0; };
>From fdffb31e1f960d51b840398950e3758f7c5a284f Mon Sep 17 00:00:00 2001
From: Yuri Istomin
Date: Mon, 1 Apr 2024 22:03:12 +0300
Subject: [PATCH 2/3] Update DR status page
---
clang/www/cxx_dr_status.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index c20a5d021e9d95..5e1e03dec1d484 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -9444,7 +9444,7 @@ C++ defect report implementation
status
https://cplusplus.github.io/CWG/issues/1606.html";>1606
NAD
sizeof closure class
-Unknown
+Clang 3.1
https://cplusplus.github.io/CWG/issues/1607.html";>1607
>From 48a042bf084f92e8da935326f8cf22b5c6e72a1c Mon Sep 17 00:00:00 2001
From: Yuri Istomin
Date: Tue, 2 Apr 2024 14:58:57 +0300
Subject: [PATCH 3/3] Fix codestyle
---
clang/test/CXX/drs/dr16xx.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/CXX/drs/dr16xx.cpp b/clang/test/CXX/drs/dr16xx.cpp
index cf05cc2291e6ff..f4d6c04fb8e073 100644
--- a/clang/test/CXX/drs/dr16xx.cpp
+++ b/clang/test/CXX/drs/dr16xx.cpp
@@ -40,7 +40,7 @@ namespace dr1606 { // dr1606: 3.1
std::size_t test() {
int i = 1;
int j = 1;
-auto f = [=]{ return i + j;};
+auto f = [=]{ return i + j; };
return sizeof(f);
}
#endif
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits