Author: Vlad Serebrennikov Date: 2025-01-05T13:15:08+04:00 New Revision: fbc198c548cf21bb2be29509a46913a57f95e610
URL: https://github.com/llvm/llvm-project/commit/fbc198c548cf21bb2be29509a46913a57f95e610 DIFF: https://github.com/llvm/llvm-project/commit/fbc198c548cf21bb2be29509a46913a57f95e610.diff LOG: [clang] Add test for CWG192 "Name lookup in parameters" (#121679) This patch adds a rather simple test for [CWG192](https://cplusplus.github.io/CWG/issues/192.html). Parameter declarations of member functions are not complete-class contexts (unlike default arguments), so the example in the issue is ill-formed. Changes in [CWG1352](https://cplusplus.github.io/CWG/issues/1352.html) which resolved the issue, are superseded by the notion of complete-class context (https://eel.is/c++draft/class.mem#def:complete-class_context). Added: Modified: clang/test/CXX/drs/cwg1xx.cpp clang/www/cxx_dr_status.html Removed: ################################################################################ diff --git a/clang/test/CXX/drs/cwg1xx.cpp b/clang/test/CXX/drs/cwg1xx.cpp index 939de6dee06d38..9eeca4cb2a681a 100644 --- a/clang/test/CXX/drs/cwg1xx.cpp +++ b/clang/test/CXX/drs/cwg1xx.cpp @@ -1364,6 +1364,14 @@ namespace cwg191 { // cwg191: yes } } +namespace cwg192 { // cwg192: 2.7 +struct S { + void f(I i) { } + // expected-error@-1 {{unknown type name 'I'}} + typedef int I; +}; +} // namespace cwg192 + // cwg193 is in cwg193.cpp namespace cwg194 { // cwg194: yes diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 335442c6e605f8..239c05e7823846 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -1197,7 +1197,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://cplusplus.github.io/CWG/issues/192.html">192</a></td> <td>NAD</td> <td>Name lookup in parameters</td> - <td class="unknown" align="center">Unknown</td> + <td class="full" align="center">Clang 2.7</td> </tr> <tr id="193"> <td><a href="https://cplusplus.github.io/CWG/issues/193.html">193</a></td> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits