r229829 - Mark DR1940 as implemented
David Majnemer
david.majnemer at gmail.com
Wed Feb 18 23:29:01 PST 2015
Author: majnemer
Date: Thu Feb 19 01:29:01 2015
New Revision: 229829
URL: http://llvm.org/viewvc/llvm-project?rev=229829&view=rev
Log:
Mark DR1940 as implemented
Modified:
cfe/trunk/test/CXX/drs/dr19xx.cpp
cfe/trunk/www/cxx_dr_status.html
Modified: cfe/trunk/test/CXX/drs/dr19xx.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr19xx.cpp?rev=229829&r1=229828&r2=229829&view=diff
==============================================================================
--- cfe/trunk/test/CXX/drs/dr19xx.cpp (original)
+++ cfe/trunk/test/CXX/drs/dr19xx.cpp Thu Feb 19 01:29:01 2015
@@ -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
Modified: cfe/trunk/www/cxx_dr_status.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_dr_status.html?rev=229829&r1=229828&r2=229829&view=diff
==============================================================================
--- cfe/trunk/www/cxx_dr_status.html (original)
+++ cfe/trunk/www/cxx_dr_status.html Thu Feb 19 01:29:01 2015
@@ -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>
More information about the cfe-commits
mailing list