Compiler support for C23
From cppreference.com
< c | compiler support
[edit] C23 core language features
| This section is incomplete Reason: status for Apple Clang and other compilers supporting C2x |
| C23 feature |
Paper(s) |
GCC |
Clang |
MSVC |
Apple Clang |
EDG eccp |
Intel C++ |
Nvidia HPC C++ (ex PGI)* |
Nvidia nvcc |
Cray |
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| static_assert with no message | N2265 | 9 | 9 | Yes | Yes | 6.5 | 2021.1.2 (clang based) | ||||
[[nodiscard]]
|
N2267 | 10 | 9 | Yes | 6.4 | 2021.1.2 (clang based) | |||||
[[maybe_unused]]
|
N2270 | 10 | 9 | Yes | 6.4 | 2021.1.2 (clang based) | |||||
[[deprecated]]
|
N2334 | 10 | 9 | Yes | 6.4 | 2021.1.2 (clang based) | |||||
| Attributes | N2335 N2554 |
10 | 9 | Yes | 6.4 | 2021.1.2 (clang based) | |||||
| IEEE 754 decimal floating-point types | N2341 | 4.2 (partial)* 12 |
13.0 (partial)* | ||||||||
[[fallthrough]]
|
N2408 | 10 | 9 | Yes | 6.4 | 2021.1.2 (clang based) | |||||
u8 character constants
|
N2418 | 10 | 15 | 6.5 | 2022.2 | ||||||
| Removal of function definitions without prototype | N2432 | 10 | 15 | 2022.2 | |||||||
[[nodiscard]] with message
|