Skip to content
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

c++20 std::source_location support request #23254

Open
hsdk123 opened this issue Dec 26, 2024 · 3 comments
Open

c++20 std::source_location support request #23254

hsdk123 opened this issue Dec 26, 2024 · 3 comments

Comments

@hsdk123
Copy link

hsdk123 commented Dec 26, 2024

This is a request for a compiler upgrade that supports std::source_location

https://en.cppreference.com/w/cpp/utility/source_location

@hsdk123 hsdk123 changed the title c++20 std::source_location c++20 std::source_location support request Dec 26, 2024
@sbc100
Copy link
Collaborator

sbc100 commented Dec 31, 2024

This sounds like a libc++ issue? What happens if you try to use this feature with emscripten today? Perhaps the upcoming change to upgrade libc++ to LLVM 19 will fix this: #22994 ?

@hsdk123
Copy link
Author

hsdk123 commented Jan 1, 2025

What happens if you try to use this feature with emscripten today?

A compiler error that the header source_location doesn't exist.

@sbc100
Copy link
Collaborator

sbc100 commented Jan 2, 2025

Seems to work for me:

$ cat test.cc 
#include <source_location>

std::source_location x;
$ em++ -std=c++20 test.cc -c

Can you share the full command line you are using? And also the version of emscripten you are using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants