[clang] eb614db - [clang][NFC] Mark CWG 974 and 1814 (default argument in a...

Bruno Ricci via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 13 06:08:06 PDT 2020


Author: Bruno Ricci
Date: 2020-06-13T13:49:07+01:00
New Revision: eb614db0a0b41734ef52c2cdd87461f0ca62a900

URL: https://github.com/llvm/llvm-project/commit/eb614db0a0b41734ef52c2cdd87461f0ca62a900
DIFF: https://github.com/llvm/llvm-project/commit/eb614db0a0b41734ef52c2cdd87461f0ca62a900.diff

LOG: [clang][NFC] Mark CWG 974 and 1814 (default argument in a...

...lambda-expression) as done. They have been allowed since at least clang 3.3.

Added: 
    

Modified: 
    clang/test/CXX/drs/dr18xx.cpp
    clang/test/CXX/drs/dr9xx.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/drs/dr18xx.cpp b/clang/test/CXX/drs/dr18xx.cpp
index 33c0452b6c09..6cf526345af3 100644
--- a/clang/test/CXX/drs/dr18xx.cpp
+++ b/clang/test/CXX/drs/dr18xx.cpp
@@ -31,6 +31,14 @@ namespace dr1813 { // dr1813: 7
   static_assert(!__is_standard_layout(U), "");
 }
 
+namespace dr1814 { // dr1814: yes
+#if __cplusplus >= 201103L
+  void test() {
+    auto lam = [](int x = 42) { return x; };
+  }
+#endif
+}
+
 namespace dr1815 { // dr1815: no
 #if __cplusplus >= 201402L
   // FIXME: needs codegen test

diff  --git a/clang/test/CXX/drs/dr9xx.cpp b/clang/test/CXX/drs/dr9xx.cpp
index b37e17d6b098..e8c22b2972ce 100644
--- a/clang/test/CXX/drs/dr9xx.cpp
+++ b/clang/test/CXX/drs/dr9xx.cpp
@@ -73,3 +73,11 @@ namespace dr948 { // dr948: 3.7
   }
 #endif
 }
+
+namespace dr974 { // dr974: yes
+#if __cplusplus >= 201103L
+  void test() {
+    auto lam = [](int x = 42) { return x; };
+  }
+#endif
+}


        


More information about the cfe-commits mailing list