zero9178 created this revision. zero9178 added a reviewer: clang-language-wg. Herald added a project: All. zero9178 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
DR: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1479 Clang has implemented this DR as far back as I could go on compiler explorer (3.0). This patch simply adds a test case and needed comments for the update script to mark it as complete. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D122620 Files: clang/test/CXX/drs/dr14xx.cpp clang/www/cxx_dr_status.html Index: clang/www/cxx_dr_status.html =================================================================== --- clang/www/cxx_dr_status.html +++ clang/www/cxx_dr_status.html @@ -8688,7 +8688,7 @@ <td><a href="https://wg21.link/cwg1479">1479</a></td> <td>CD3</td> <td>Literal operators and default arguments</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="1480"> <td><a href="https://wg21.link/cwg1480">1480</a></td> Index: clang/test/CXX/drs/dr14xx.cpp =================================================================== --- clang/test/CXX/drs/dr14xx.cpp +++ clang/test/CXX/drs/dr14xx.cpp @@ -463,6 +463,10 @@ #endif } // dr1467 +namespace dr1479 { // dr1479: yes + int operator"" _a(const char*, std::size_t = 0); // expected-error {{literal operator cannot have a default argument}} +} + namespace dr1490 { // dr1490: 3.7 c++11 // List-initialization from a string literal
Index: clang/www/cxx_dr_status.html =================================================================== --- clang/www/cxx_dr_status.html +++ clang/www/cxx_dr_status.html @@ -8688,7 +8688,7 @@ <td><a href="https://wg21.link/cwg1479">1479</a></td> <td>CD3</td> <td>Literal operators and default arguments</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="1480"> <td><a href="https://wg21.link/cwg1480">1480</a></td> Index: clang/test/CXX/drs/dr14xx.cpp =================================================================== --- clang/test/CXX/drs/dr14xx.cpp +++ clang/test/CXX/drs/dr14xx.cpp @@ -463,6 +463,10 @@ #endif } // dr1467 +namespace dr1479 { // dr1479: yes + int operator"" _a(const char*, std::size_t = 0); // expected-error {{literal operator cannot have a default argument}} +} + namespace dr1490 { // dr1490: 3.7 c++11 // List-initialization from a string literal
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits