logoalt Hacker News

GCC 16 considering changing default to C++20

91 pointsby pjmlptoday at 1:01 PM95 commentsview on HN

Comments

withzombiestoday at 2:00 PM

Shouldn't the compilers be on the bleeding edge of the standards? What is the downside of switching to the newest standard when it's properly supported?

It's the type of dog fooding they should be doing! It's one reason why people care so much about self-hosted compilers, it's a demonstration of maturity of the language/compiler.

show 10 replies
cardiffspacemantoday at 7:53 PM

In the last “big” shop I worked in, we were cross-compiling all production code. Each target device had an SDK that came with a GCC and a kernel tarball, inter alia. We had a standard way to set these up. We used C++03 for years. We decided to try C++11 for userland. All the compilers supported that and after some validation, we changed permanently. Neither before the change nor after, did we rely on the absence of a “—-std=“ command line option as the means of choosing the standard for C++ or even C.

Of course we were all ADHD pedantic nerds so take this with a grain of salt.

jjmarrtoday at 1:37 PM

Good. Let me use modules!

show 4 replies
secondcomingtoday at 2:07 PM

The coroutine convo is interesting. Does it mean that for example, a GCC program may not run correctly when linked to a clang binary and both use coroutines?

dmixtoday at 1:42 PM

That anime gating is very jarring, thought I clicked on the wrong link and clicked back.

show 8 replies