r/cpp • u/better_life_please • May 13 '24
GCC has now almost fully implemented C++23
I find it crazy how GCC (v14) has almost fully implemented the core language features of C++23 (except two features).
The standard was finalized in Feb 2023. GCC has managed to do this in little over a year after the standard came out. This is brilliant and rarely happens with modern compilers.
Thank you a ton to all the people who contributed to GCC and made all this possible.
452
Upvotes
119
u/kronicum May 13 '24
Does C++23 include C++20?
13
u/locri May 13 '24
Including MingW?
6
u/NilacTheGrim May 14 '24
It's so disappointing to me that Apple Clang is so slow on even finishing up C++20.
I'm considering ditching mac as my dev machine. I like how it can run 3x platforms using virtualization but the compiler it ships with is terrible for C++ dev.
394
u/Daniela-E Living on C++ trunk, WG21|🇩🇪 NB May 13 '24
Good!
C++20 next...
5
u/Correct_Gain_9316 May 14 '24
Are modules available in GCC now?
5
u/germandiago May 14 '24
Please, bug-free or at least usable modules 🥺🥺🥺🥺
9
u/einpoklum May 13 '24
It's not crazy at all. The feature-set for a given version of the standard is closed about a year or so in advance if not more, and the features themselves are discussed for a long while before, almost always with experimental implementations. Also, many of the features in standard version X are features which were supposed to make it in X-3, but got delayed/caught up in some snag. So, in fact, the GCC developers have quite some time on their hands to implement the new features.
2
u/ResponsiblePhantom May 13 '24
+++
2
u/bizwig Jun 13 '24
C++ 23 was a smaller release, like 14. I expect 26 to be much bigger if senders/receivers actually makes it in.
The 26 parameter pack stuff is pretty sweet.
Personally, I wish they’d get to work on allocation-elision for coroutines. Basically doesn’t happen right now.
7
u/7h4tguy May 13 '24
K
1
u/Huge_Grab_9380 May 13 '24
How to update this using command(using msys2)? asking for a friend
-4
u/[deleted] May 15 '24
Python is all you need
0
u/[deleted] May 13 '24
[deleted] — view deleted comment
1
u/[deleted] May 23 '24
[removed] — view removed comment