You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a minimal program using <filesystem> with -fmodules -fcxx-modules using libc++ built from upstream, the compiler fails with module import errors for time_point and _FilesystemClock.
reproducer.cpp:4:22: error: missing '#include <__chrono/time_point.h>'; 'time_point' must be defined before it is used
4 | std::filesystem::file_time_type::clock::now();
| ^
.../include/c++/v1/__chrono/time_point.h:34:28: note: definition here is not reachable
34 | class _LIBCPP_TEMPLATE_VIS time_point {
| ^
reproducer.cpp:4:38: error: missing '#include <__chrono/file_clock.h>'; '_FilesystemClock' must be defined before it is used
4 | std::filesystem::file_time_type::clock::now();
| ^
.../include/c++/v1/__chrono/file_clock.h:49:8: note: definition here is not reachable
49 | struct _FilesystemClock {
| ^
2 errors generated.
Similar failures/warnings were first observed with Apple’s libc++ module map on MacOS with Sonoma 14.6.1 and XCode 15.4 and clang-1500.3.9.4 - See a similar reproducer with AppleClang: root-project/root#16494 (comment)
The text was updated successfully, but these errors were encountered:
llvmbot
added
the
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
label
May 6, 2025
Uh oh!
There was an error while loading. Please reload this page.
When compiling a minimal program using
<filesystem>
with-fmodules -fcxx-modules
using libc++ built from upstream, the compiler fails with module import errors fortime_point
and_FilesystemClock.
Compiling the below code:
with
Raises:
Similar failures/warnings were first observed with Apple’s libc++ module map on MacOS with Sonoma 14.6.1 and XCode 15.4 and clang-1500.3.9.4 - See a similar reproducer with AppleClang: root-project/root#16494 (comment)
The text was updated successfully, but these errors were encountered: