Author: Ashwin Kishin Banwari Date: 2025-07-08T10:01:08+08:00 New Revision: 48ff068c525922e8323982795c69bbfbe49fea1e
URL: https://github.com/llvm/llvm-project/commit/48ff068c525922e8323982795c69bbfbe49fea1e DIFF: https://github.com/llvm/llvm-project/commit/48ff068c525922e8323982795c69bbfbe49fea1e.diff LOG: [NFC] [C++] [Modules] Mark P2788 as implemented and add test (#147138) This is already implemented. Added: clang/test/SemaCXX/P2788.cpp Modified: clang/www/cxx_status.html Removed: ################################################################################ diff --git a/clang/test/SemaCXX/P2788.cpp b/clang/test/SemaCXX/P2788.cpp new file mode 100644 index 0000000000000..a9184e1521e8e --- /dev/null +++ b/clang/test/SemaCXX/P2788.cpp @@ -0,0 +1,17 @@ +// RUN: rm -rf %t +// RUN: split-file %s %t + + +// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/B.cpp -o %t/B.pcm +// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/A.cpp -fmodule-file=A:B=%t/B.pcm -o %t/A.pcm + +//--- A.cpp +// expected-no-diagnostics +export module A; +import :B; +export int x = dimensions + 1; + +//--- B.cpp +// expected-no-diagnostics +export module A:B; +const int dimensions=3; diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index bd25862f8d277..56b6dd06a57f8 100755 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -947,7 +947,7 @@ <h2 id="cxx20">C++20 implementation status</h2> </tr> <tr> <!-- from Issaquah 2023 --> <td><a href="https://wg21.link/P2788R0">P2788R0</a> (<a href="#dr">DR</a>)</td> - <td class="none" align="center">No</td> + <td class="full" align="center">Clang 17</td> </tr> <tr> <td>Coroutines</td> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits