llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) <details> <summary>Changes</summary> 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). --- Full diff: https://github.com/llvm/llvm-project/pull/121679.diff 2 Files Affected: - (modified) clang/test/CXX/drs/cwg1xx.cpp (+8) - (modified) clang/www/cxx_dr_status.html (+1-1) ``````````diff diff --git a/clang/test/CXX/drs/cwg1xx.cpp b/clang/test/CXX/drs/cwg1xx.cpp index 6aec8b65c91f12..fb39da04b2df39 100644 --- a/clang/test/CXX/drs/cwg1xx.cpp +++ b/clang/test/CXX/drs/cwg1xx.cpp @@ -1347,6 +1347,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 c069e155fd547c..68e2dcdf71253b 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> `````````` </details> https://github.com/llvm/llvm-project/pull/121679 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits