Mark DR1940 as implemented
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 19 Feb 2015 07:29:01 +0000 (07:29 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 19 Feb 2015 07:29:01 +0000 (07:29 +0000)
llvm-svn: 229829

clang/test/CXX/drs/dr19xx.cpp
clang/www/cxx_dr_status.html

index 56f617d..9c2d3e7 100644 (file)
@@ -39,6 +39,15 @@ namespace dr1902 { // dr1902: 3.7
 #endif
 }
 
+#if __cplusplus >= 201103L
+namespace dr1940 { // dr1940: yes
+static union {
+  static_assert(true, "");  // ok
+  static_assert(false, ""); // expected-error {{static_assert failed}}
+};
+}
+#endif
+
 #if __cplusplus >= 201402L
 namespace dr1947 { // dr1947: yes
 unsigned o = 0'01;  // ok
index 852c6bd..e70604f 100644 (file)
@@ -11455,7 +11455,7 @@ and <I>POD class</I></td>
     <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1940">1940</a></td>
     <td>DR</td>
     <td><TT>static_assert</TT> in anonymous unions</td>
-    <td class="none" align="center">Unknown</td>
+    <td class="full" align="center">Yes</td>
   </tr>
   <tr class="open" id="1941">
     <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1941">1941</a></td>