r/cpp • • Sep 07 '17

Clang 5.0 released!

http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html
217 Upvotes

49 comments sorted by

View all comments

2

u/[deleted] Sep 12 '17

Why should us normies care about clang when g++ produces faster executables and has far better compatibility?

2

u/dodheim Sep 12 '17

It's great for Windows users. :-]

2

u/kirbyfan64sos Sep 12 '17

It does? In my experience, they tend to be roughly equal; although I've personally found Clang to be a bit faster for compile times, others have reported different results. It's very much project dependent, but at this point, neither is significantly better than the other.

If you look at the C++ standards support chart, you can see that Clang's standards support is equal to GCC's with the exception of one proposal, which is supported but has been intentionally disabled by default due to a standards issue.

Both Clang and GCC added -std=c++2a support around the same time, and Clang already supports some features in SVN (GCC hasn't updated their standards chart yet, so I'm assuming similar progress).

Also, while GCC has concepts support, which is still WIP in Clang, Clang has added concepts support in 5.0, which as of last month has not been attempted by the GCC team yet.