4 ms·
based on https://en.cppreference.com/w/c/compiler_support/23 https://en.cppreference.com/w/c/compiler_support/23 even the newest clang does not support many of
by synergy20 3y ago
based on https://en.cppreference.com/w/c/compiler_support/23 https://en.cppreference.com/w/c/compiler_support/23
even the newest clang does not support many of the c23 features.
gcc13 is much better, only a very few c23 are yet to be supported.
this is a long standing problem with clang/clang++: they're used in many linters and intellisense but they're lagging behind by a lot comparing to gcc.
- xxpor 3y ago>they're used in many linters and intellisense but they're lagging behind by a lot comparing to gcc. Pure speculation, but I wouldn't be surprised if these two were directly related to each other. Clang/LLVM is more modular, which makes it easy to write new things that integrate it (like a linter), but this can slow down adding new things that change the data model and external interfaces. GCC is the opposite: one big blob that makes it easier to add things since the surface area is lower.
- pjmlp 3y agoActually it is a mix of factors, companies enjoy their downstream forks without contributing to upstream thanks license. Almost all major compiler vendors have migrated to clang forks and if they contribute upstream, is on the backend side, for their platforms, not fronted changes. Big contributors like Apple and Google, deciding to refocus on their own languages, and current language support being good enough for their LLVM use cases.
- ronsor 3y agoPelles C for Windows actually supports all (perhaps missing one or two) C23 features, even `#embed`.
- slacka 3y agoAll of the features descried in the article are supported by clang except maybe for the constexpr keyword. By your own list, neither one supports all the features. Also, gcc only supports about 4 or 5 features more than gcc, and clang supports a few gcc doesn't. Hardly "much better".