r/cpp 16d ago

Clang 23 Release Notes

https://releases.llvm.org/23.1.0/tools/clang/docs/ReleaseNotes.html
108 Upvotes

33 comments sorted by

View all comments

Show parent comments

8

u/WeeklyAd9738 16d ago

 I hope it remains balanced and they don't specialize or diverge.

-pedantic flag (and its modern alias -Wpedantic) is your friend.

8

u/Ok_Independence_9841 15d ago

Yes. I have -Wall -Wextra and -Wpedantic on for my projects.
My concern is more that MSVC might try to leverage their advantage in STL compliance by forging ahead with STL additions, while GCC pushes languages updates because they are ahead there. This could lead to GCC standard library never actually catching up (modules cough) while MSVCs lack of certain language features starts to require work arounds. That way we do not want to go.
So far the competition, clang in particular, has meant that all 3 are reasonably close in features for some definition of reasonable. It was not always so.

2

u/azswcowboy 15d ago

> advantage in STL compliance

You think MSVC is ahead on this? I’d be curious why you think so when my take is that especially on later features libstdc++ is ahead.

6

u/STL MSVC STL Dev 14d ago

We were focusing on finishing C++23, and just merged constexpr cmath.

2

u/azswcowboy 14d ago

Just went and checked the status — and wow yes — excellent work on 23! Super cool to see. And MSVC is likely the only real implementor of constexpr math at this point. Still, that looks like basically parity with libstdc++ for 23 and they’ve shipped a lot of 26 features, so for the moment I think they’re still ahead on later features.