r259335 - Mark DR1250 as implemented

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 31 17:33:18 PST 2016


Author: majnemer
Date: Sun Jan 31 19:33:17 2016
New Revision: 259335

URL: http://llvm.org/viewvc/llvm-project?rev=259335&view=rev
Log:
Mark DR1250 as implemented

We implemented this DR back in r258768 but forgot to mark it as
implemented.

Added:
    cfe/trunk/test/CXX/drs/dr12xx.cpp
Modified:
    cfe/trunk/test/SemaCXX/virtual-override.cpp
    cfe/trunk/www/cxx_dr_status.html

Added: cfe/trunk/test/CXX/drs/dr12xx.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr12xx.cpp?rev=259335&view=auto
==============================================================================
--- cfe/trunk/test/CXX/drs/dr12xx.cpp (added)
+++ cfe/trunk/test/CXX/drs/dr12xx.cpp Sun Jan 31 19:33:17 2016
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+
+// expected-no-diagnostics
+
+namespace dr1250 {  // dr1250: 3.9
+struct Incomplete;
+
+struct Base {
+  virtual const Incomplete *meow() = 0;
+};
+
+struct Derived : Base {
+  virtual Incomplete *meow();
+};
+} // dr1250

Modified: cfe/trunk/test/SemaCXX/virtual-override.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/virtual-override.cpp?rev=259335&r1=259334&r2=259335&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/virtual-override.cpp (original)
+++ cfe/trunk/test/SemaCXX/virtual-override.cpp Sun Jan 31 19:33:17 2016
@@ -289,15 +289,3 @@ namespace PR8168 {
     static void foo() {} // expected-error{{'static' member function 'foo' overrides a virtual function}}
   };
 }
-
-namespace PR26297 {
-struct Incomplete;
-
-struct Base {
-  virtual const Incomplete *meow() = 0;
-};
-
-struct Derived : Base {
-  virtual Incomplete *meow() override { return nullptr; }
-};
-}

Modified: cfe/trunk/www/cxx_dr_status.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_dr_status.html?rev=259335&r1=259334&r2=259335&view=diff
==============================================================================
--- cfe/trunk/www/cxx_dr_status.html (original)
+++ cfe/trunk/www/cxx_dr_status.html Sun Jan 31 19:33:17 2016
@@ -7315,7 +7315,7 @@ and <I>POD class</I></td>
     <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1250">1250</a></td>
     <td>CD3</td>
     <td>Cv-qualification of incomplete virtual function return types</td>
-    <td class="none" align="center">Unknown</td>
+    <td class="svn" align="center">SVN</td>
   </tr>
   <tr id="1251">
     <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1251">1251</a></td>




More information about the cfe-commits mailing list