]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229829 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 56f617d06d2d7cbb0ab15e1e3fedfd29af6f38c9..9c2d3e7c177063d135152c2ae7f176844c512b91 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 852c6bd6054c468a658da9912660071cc80475e5..e70604f8cb5fca58bc098cb3c0befbb8fa0fe21e 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>