-
Notifications
You must be signed in to change notification settings - Fork 13.4k
clang std::source_location::current() fail #60912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you please create reproducer on https://godbolt.org ? |
It's expected. Microsoft STL requires And clang 15 doesn't fully implement https://godbolt.org/z/soxeEaxnT Even clang trunk doesn't define that macro: https://godbolt.org/z/K7rMfdW9E |
Actually it looks like compiler devs just forgot to define that macro: #57094 but maybe some bugs still exist and compiler devs don't want to define the macro. |
@llvm/issue-subscribers-c-20 |
if |
Microsoft STL implementation checks that macro but libc++ and libstdc++ don't check. (Your example uses libstdc++ , if you add |
Look: https://en.cppreference.com/w/cpp/utility/source_location/current It's |
Hi @AaronBallman ! Could you give us an update about the |
I know we're at least missing support for https://wg21.link/P2564R3 in terms of setting the value to One thing that would help is if someone was able to run an experiment defining the macro to the 2018 value and trying to compile a bunch of large C++ relatively modern projects to see if that points out bugs we're not aware of. |
Well, I have pretty slow PC (AMD FX8300) but I could run some projects too. Do you have a list of such projects? Also, look what I've found: chromium/subspace@e18b443#diff-eb105f54978bac9a1111fa159977cd7cf6d3372ce522c53019c294c4d5142f8eR95 and marzer/muu@25ff4e5#diff-9fee50b957f0636d37f5d5ed34361016c89b77729fdd415316d06598e1530ed1R412-R418 |
Chromium was one such project, but you found something out there! :-D The other projects I usually use for this sort of thing (uncertain of how much consteval use they have, though) are Qt, kokkos, boost, and Folly. |
greetings kind regards clang std::current_location::current() results in error as shown MSVC compiles w/o error kindly advise Thank You Kindly

The text was updated successfully, but these errors were encountered: