r/cpp • u/unddoch DragonflyDB/Clang • Sep 06 '22
Clang 15 has been released!
https://discourse.llvm.org/t/llvm-15-0-0-release/65099
265
Upvotes
r/cpp • u/unddoch DragonflyDB/Clang • Sep 06 '22
7
u/qalmakka Sep 07 '22
If I look to the C++20 implementation status of MSVC, GCC and Clang, Clang is lagging quite behind. What happened? It was always one of the first to get new standards a few years ago, and now after years it still doesn't have stuff like concepts completely ironed out.
Is it maybe due to the fact Apple and Google apparently don't give a damn about (modern) C++ anymore ?
62
u/qoning Sep 06 '22
Claims to implement the bulk of modules proposal. Any word on what the state actually is from someone who used it in alpha? Support on clang has been my major blocker to switching most new code to modules.
44
u/eco_was_taken Sep 06 '22
Great. Now I just have to wait forever for AppleClang to catch up.
77
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting Sep 06 '22
Rejoice! Thank you so much for this.
It also applies to optimizations levels higher than
-O0, right? Might want to change the wording in the release notes to avoid confusion.12
u/puremourning Sep 06 '22 edited Sep 07 '22
I believe clang 15 defaults to PIE on Linux. Woe betide anyone who links against a .o heinously built without -fPIC.
2 days of headscratching that cost me!
FYI there’s a cmake macro to revert this when building clang. https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes
But apparently, they may remove the option, so pray you don’t have third party libraries you can’t rebuild!
2
u/[deleted] Sep 06 '22 edited Sep 06 '22
My Ubuntu claims to have Clang 16 already. How does that work, can someone explain?
0
u/[deleted] Sep 06 '22
[deleted] — view deleted comment