Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/compiler support/26"

From cppreference.com
(Clang has always behaved reasonably as specified in P2552R2, see LLVM commit cff9e77783aceb52da705b7e2b2e45bfbc86c628)
m (+<br>)
 
(42 intermediate revisions by 8 users not shown)
Line 4: Line 4:
 
{{compiler_support_row
 
{{compiler_support_row
 
|feature=DR98: Removing undefined behavior from lexing
 
|feature=DR98: Removing undefined behavior from lexing
|reference={{wg21|P2621R2}}
+
|reference={{wg21|P2621R3}}
 
|version=c++26
 
|version=c++26
 
|clang={{yes|3.3}}
 
|clang={{yes|3.3}}
Line 17: Line 17:
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature=[[cpp/language/string_literal#Unevaluated strings|Unevaluated strings]]
+
|feature={{ls|cpp/language/string literal#Unevaluated strings}}
 
|reference={{wg21|P2361R6}}
 
|reference={{wg21|P2361R6}}
 
|version=c++26
 
|version=c++26
Line 27: Line 27:
 
|reference={{wg21|P2558R2}}
 
|reference={{wg21|P2558R2}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 
|clang={{yes}}
 
|clang={{yes}}
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature={{c|constexpr}} cast from {{c|void*}}
+
|feature={{c/core|constexpr}} cast from {{c|void*}}
 
|reference={{wg21|P2738R1}}
 
|reference={{wg21|P2738R1}}
 
|version=c++26
 
|version=c++26
Line 38: Line 39:
 
{{compiler_support_row
 
{{compiler_support_row
 
|feature=DR20: On the ignorability of standard attributes
 
|feature=DR20: On the ignorability of standard attributes
|reference={{wg21|P2552R2}}
+
|reference={{wg21|P2552R3}}
 
|version=c++26
 
|version=c++26
 
|clang={{yes}}
 
|clang={{yes}}
Line 44: Line 45:
 
{{compiler_support_row
 
{{compiler_support_row
 
|feature=DR11: Static storage for braced initializers
 
|feature=DR11: Static storage for braced initializers
|reference={{wg21|P2752R2}}
+
|reference={{wg21|P2752R3}}
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
Line 84: Line 85:
 
<!--202403-->
 
<!--202403-->
 
{{compiler_support_row
 
{{compiler_support_row
|feature=Disallow binding a returned reference to a [[cpp/language/reference_initialization#Lifetime_of_a_temporary|temporary]]
+
|feature=Disallow binding a returned reference to a [[cpp/language/reference initialization#Lifetime of a temporary|temporary]]
 
|reference={{wg21|P2748R5}}
 
|reference={{wg21|P2748R5}}
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
 +
|clang={{yes|19}}
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature=Attributes for [[cpp/language/structured_binding|structured bindings]]
+
|feature=Attributes for {{lt|cpp/language/structured binding}}s
 
|reference={{wg21|P0609R3}}
 
|reference={{wg21|P0609R3}}
 
|version=c++26
 
|version=c++26
Line 97: Line 99:
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature=Erroneous behavior for [[cpp/language/default_initialization#Read_from_an_indeterminate_byte|uninitialized reads]]
+
|feature=Erroneous behavior for [[cpp/language/default initialization#Read from an indeterminate byte|uninitialized reads]]
 
|reference={{wg21|P2795R5}}
 
|reference={{wg21|P2795R5}}
 
|version=c++26
 
|version=c++26
Line 109: Line 111:
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature=[[cpp/language/parameter_pack|Variadic]] [[cpp/language/friend|friends]]
+
|feature=[[cpp/language/parameter pack|Variadic]] {{lt|cpp/language/friend}}s
 
|reference={{wg21|P2893R3}}
 
|reference={{wg21|P2893R3}}
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|15}}
 
|gcc={{yes|15}}
 +
|clang={{yes|20}}
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
|feature=DR98: Clarifying rules for brace elision in [[cpp/language/aggregate_initialization|aggregate initialization]]
+
|feature=DR98: Clarifying rules for brace elision in {{lt|cpp/language/aggregate initialization}}
 
|reference={{wg21|P3106R1}}
 
|reference={{wg21|P3106R1}}
 
|version=c++26
 
|version=c++26
 +
|clang={{yes|17}}
 +
|gcc={{yes}}
 
}}
 
}}
 
{{compiler_support_row
 
{{compiler_support_row
Line 130: Line 135:
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
 
|clang={{yes|19}}
 
|clang={{yes|19}}
 +
}}
 +
<!--202406-->
 +
{{compiler_support_row
 +
|feature={{c/core|constexpr}} placement new
 +
|reference={{wg21|P2747R2}}
 +
|version=c++26
 +
|gcc={{yes|15}}
 +
|clang={{yes|20}}
 +
}}
 +
{{compiler_support_row
 +
|feature=Structured binding declaration as a condition
 +
|reference={{wg21|P0963R3}}
 +
|version=c++26
 +
|gcc={{yes|15}}
 +
|clang={{maybe|6 {{popup|Supported as an extension, not fully conforming to standardized version.|(partial)}}}}
 +
}}
 +
{{compiler_support_row
 +
|feature=Ordering of {{lt|cpp/language/constraints}} involving [[cpp/language/fold|fold expressions]]
 +
|reference={{wg21|P2963R3}}
 +
|clang={{yes|19}}
 +
|version=c++26
 +
}}
 +
{{compiler_support_row
 +
|feature=[[cpp/language/delete|Deleting]] a pointer to an incomplete type should be ill-formed
 +
|reference={{wg21|P3144R2}}
 +
|gcc={{yes|15}}
 +
|clang={{yes|19}}
 +
|version=c++26
 
}}
 
}}
 
}}
 
}}
Line 159: Line 192:
 
|reference={{wg21|P2757R3}}
 
|reference={{wg21|P2757R3}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
Line 192: Line 226:
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
|feature=constexpr stable sorting
+
|feature={{c/core|constexpr}} stable sorting
 
|reference={{wg21|P2562R1}}
 
|reference={{wg21|P2562R1}}
 
|version=c++26
 
|version=c++26
Line 200: Line 234:
 
|reference={{wg21|P2637R3}}
 
|reference={{wg21|P2637R3}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 
|clang={{yes|{{popup|variant|18 (partial)}}<br>19}}
 
|clang={{yes|{{popup|variant|18 (partial)}}<br>19}}
 
}}
 
}}
Line 237: Line 272:
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
|feature=More constexpr for {{header|cmath}} and {{header|complex}}
+
|feature=More {{c/core|constexpr}} for {{header|cmath}} and {{header|complex}}
 
|reference={{wg21|P1383R2}}
 
|reference={{wg21|P1383R2}}
 
|version=c++26
 
|version=c++26
Line 307: Line 342:
 
{{standard library support row  
 
{{standard library support row  
 
|feature={{lc|std::span}} over an initializer list
 
|feature={{lc|std::span}} over an initializer list
|reference={{wg21|P2447R4}}
+
|reference={{wg21|P2447R6}}
 
|version=c++26
 
|version=c++26
 
|clang={{yes|18}}
 
|clang={{yes|18}}
Line 326: Line 361:
 
{{standard library support row  
 
{{standard library support row  
 
|feature=A new specification for {{lc|std::generate_canonical}}
 
|feature=A new specification for {{lc|std::generate_canonical}}
|reference={{wg21|P0952R1}}
+
|reference={{wg21|P0952R2}}
 
|version=c++26
 
|version=c++26
 +
|msvc={{yes|{{msvc ver|2022.12}}}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
 
|feature=Removing deprecated typedef {{lc|std::allocator::is_always_equal}}
 
|feature=Removing deprecated typedef {{lc|std::allocator::is_always_equal}}
|reference={{wg21|P2868R1}}
+
|reference={{wg21|P2868R3}}
 
|version=c++26
 
|version=c++26
 
|clang={{yes|18}}
 
|clang={{yes|18}}
Line 359: Line 395:
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
 +
|msvc={{yes|{{msvc ver|2022.12}}}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
Line 365: Line 402:
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
 +
|msvc={{yes|{{msvc ver|2022.12}}}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
 
|feature=DR23: {{lc|std::basic_const_iterator}} should follow its underlying type’s convertibility
 
|feature=DR23: {{lc|std::basic_const_iterator}} should follow its underlying type’s convertibility
|reference={{wg21|P2836R1}}
+
|reference={{wg21|P2836R1}}<br>{{wg21|P2950R0}}
 
|version=c++26
 
|version=c++26
 
|gcc={{yes|14}}
 
|gcc={{yes|14}}
Line 392: Line 430:
 
{{standard library support row  
 
{{standard library support row  
 
|feature={{lc|views::concat}}
 
|feature={{lc|views::concat}}
|reference={{wg21|P2542R7}}
+
|reference={{wg21|P2542R8}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
Line 399: Line 438:
 
|reference={{wg21|P2591R5}}
 
|reference={{wg21|P2591R5}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 +
|clang={{yes|19}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
 
|feature=Enabling list-initialization for [[cpp/algorithm|algorithms]]
 
|feature=Enabling list-initialization for [[cpp/algorithm|algorithms]]
|reference={{wg21|P2248R8}}
+
|reference={{wg21|P2248R8}}<br>{{wg21|P3217R0}}
 
|version=c++26
 
|version=c++26
 +
|gcc={{yes|15}}
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
 
|feature={{lc|std::ranges::generate_random}}
 
|feature={{lc|std::ranges::generate_random}}
|reference={{wg21|P1068R10}}
+
|reference={{wg21|P1068R11}}
 
|version=c++26
 
|version=c++26
 
}}
 
}}
Line 419: Line 461:
 
{{standard library support row  
 
{{standard library support row  
 
|feature=Padded mdspan layouts
 
|feature=Padded mdspan layouts
|reference={{wg21|P2642R5}}
+
|reference={{wg21|P2642R6}}
 
|version=c++26
 
|version=c++26
 
}}
 
}}
Line 435: Line 477:
 
{{standard library support row  
 
{{standard library support row  
 
|feature={{lc|std::formatter<std::filesystem::path>}}
 
|feature={{lc|std::formatter<std::filesystem::path>}}
|reference={{wg21|P2845R6}}
+
|reference={{wg21|P2845R8}}
 
|version=c++26
 
|version=c++26
 
}}
 
}}
Line 455: Line 497:
 
{{standard library support row  
 
{{standard library support row  
 
|feature=Remove Deprecated strstreams
 
|feature=Remove Deprecated strstreams
|reference={{wg21|P2867R1}}
+
|reference={{wg21|P2867R2}}
 
|version=c++26
 
|version=c++26
 
|clang={{yes|19}}
 
|clang={{yes|19}}
Line 463: Line 505:
 
|reference={{wg21|P2869R4}}
 
|reference={{wg21|P2869R4}}
 
|version=c++26
 
|version=c++26
|clang={{yes|19}}
 
 
}}
 
}}
 
{{standard library support row  
 
{{standard library support row  
Line 473: Line 514:
 
{{standard library support row  
 
{{standard library support row  
 
|feature=DR23: Permit an efficient implementation of {{lc|std::print}}
 
|feature=DR23: Permit an efficient implementation of {{lc|std::print}}
|reference={{wg21|P3107R3}}
+
|reference={{wg21|P3107R5}}<br>{{wg21|P3235R3}}
 
|version=c++26
 
|version=c++26
 +
|msvc={{yes|{{msvc ver|2022.13}}}}
 +
}}
 +
<!--202406-->
 +
{{standard library support row
 +
|feature={{lc|std::execution}}: sender-receiver model of execution control
 +
|reference={{wg21|P2300R10}}
 +
|version=c++26
 +
}}
 +
{{standard library support row
 +
|feature={{lc|std::inplace_vector}}: dynamically-resizable vector with fixed capacity
 +
|reference={{wg21|P0843R14}}
 +
|version=c++26
 +
}}
 +
{{standard library support row
 +
|feature={{lc|std::philox_engine}}: counter-based random number engine
 +
|reference={{wg21|P2075R6}}
 +
|version=c++26
 +
}}
 +
{{standard library support row
 +
|feature={{lc|std::optional}} range support
 +
|reference={{wg21|P3168R2}}
 +
|version=c++26
 +
}}
 +
{{standard library support row
 +
|feature={{lc|std::is_virtual_base_of}}: type trait for detecting virtual base classes
 +
|reference={{wg21|P2985R0}}
 +
|version=c++26
 +
|gcc={{yes|15}}
 +
|clang={{yes|20}}
 +
}}
 +
{{standard library support row
 +
|feature={{lc|std::dims}} for {{lc|std::mdspan}}
 +
|reference={{wg21|P2389R2}}
 +
|version=c++26
 +
|clang={{yes|19}}
 +
}}
 +
<!--{{standard library support row
 +
|feature=Removing {{attr|nodiscard}} from the standard library specification
 +
|reference={{wg21|P2422R1}}
 +
|version=c++26
 +
|clang={{n/a}}
 +
|gcc={{n/a}}
 +
|msvc={{n/a}}
 +
}}-->
 +
{{standard library support row
 +
|feature=DR11: Formal specification of the type of {{lc|std::ignore}}
 +
|reference={{wg21|P2968R2}}
 +
|version=c++26
 +
|clang={{yes|19}}
 +
|msvc={{yes|{{msvc ver|2022.12}}}}
 +
|gcc={{yes|15}}
 +
}}
 +
{{standard library support row
 +
|feature=DR20: Removing the common reference requirement from the indirectly invocable concepts
 +
|reference={{wg21|P2997R1}}
 +
|version=c++26
 +
|gcc={{yes|15}}
 +
|msvc={{yes|{{msvc ver|2022.12}}}}
 +
|clang={{yes|19}}
 
}}
 
}}
 
}}
 
}}

Latest revision as of 12:16, 30 October 2024

[edit] C++26 core language features

C++26 feature

 
Paper(s)

 
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
IBM XL C++
IBM Open XL C++ for AIX
IBM Open XL C++ for z/OS
Sun/Oracle C++
Embarcadero C++ Builder
Cray
Nvidia HPC C++ (ex PGI)*
Nvidia nvcc
DR98: Removing undefined behavior from lexing P2621R3 Yes 3.3
DR98: Making non-encodable string literals ill-formed P1854R4 14 14
Unevaluated strings P2361R6 14 17 (partial)*
18
Adding @, $, and ` to the basic character set P2558R2 15 Yes
constexpr cast from void* P2738R1 14 17
DR20: On the ignorability of standard attributes P2552R3 Yes
DR11: Static storage for braced initializers P2752R3 14
User-generated static_assert messages P2741R3 14 17
Placeholder variables with no name P2169R4 14 18
Pack indexing P2662R3 19
Removing deprecated arithmetic conversion on enumerations P2864R2 14 18
DR11/20: Template parameter initialization P2308R1 18
Disallow binding a returned reference to a temporary P2748R5 14 19
Attributes for structured bindings P0609R3 15 19
Erroneous behavior for uninitialized reads P2795R5
= delete("reason"); P2573R2 15 19
Variadic friends P2893R3 15 20
DR98: Clarifying rules for brace elision in aggregate initialization P3106R1 Yes 17
DR20: Disallow module declarations to be macros P3034R1
DR11: Trivial infinite loops are not undefined behavior P2809R3 14 19
constexpr placement new P2747R2 15 20
Structured binding declaration as a condition P0963R3 15 6 (partial)*
Ordering of constraints involving fold expressions P2963R3 19
Deleting a pointer to an incomplete type should be ill-formed P3144R2 15 19
 

C++26 feature
 

Paper(s)
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
IBM XL C++
IBM Open XL C++ for AIX
IBM Open XL C++ for z/OS
Sun/Oracle C++
Embarcadero C++ Builder
Cray
Nvidia HPC C++ (ex PGI)*
Nvidia nvcc

[edit] C++26 library features

C++26 feature

 
Paper(s)

 
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*
IBM Open XL C/C++ for AIX*
Sun/Oracle C++*
Embarcadero C++ Builder*
Testing for success or failure of <charconv> functions P2497R0 14 18
std::text_encoding: text encodings identification P1885R12 14
Arithmetic overloads of std::to_string and std::to_wstring use std::format P2587R3 14
Type checking format args P2757R3 15
Formatting pointers P2510R3 14* 17* 19.40**
Hashing support for std::chrono value classes P2592R3
Read-Copy Update P2545R4
Hazard Pointers P2530R3
ADL-proof std::projected P2538R1 14* 18* 19.38**
constexpr stable sorting P2562R1
Member visit P2637R3 15 18 (partial)*
19
std::is_within_lifetime P2641R4
Extending associative containers with the remaining heterogeneous overloads P2363R5
Enabling the use of std::weak_ptr as keys in unordered associative containers P1901R2
Native handles in file streams P1759R6 14 18
Interfacing string streams with std::string_view P2495R3 19
Interfacing std::bitset with std::string_view P2697R1 18
More constexpr for <cmath> and <complex> P1383R2 4.6 (partial)*
Adding the new 2022 SI prefixes on ratios: std::quecto, std::ronto, std::ronna, and std::quetta P2734R0 14 17
std::function_ref: type-erased callable reference P0792R14
std::copyable_function P2548R6
std::bind_front, std::bind_back, and std::not_fn to NTTP callables P2714R1
std::submdspan() P2630R4
Freestanding Language: Optional ::operator new P2013R5 N/A
Saturation Arithmetic P0543R3 14 18
<debugging>: Debugging Support P2546R5
P2810R3
<linalg>: A free function linear algebra interface based on the BLAS P1673R13
Making assert() macro user friendly P2264R7
Runtime format strings P2918R2 14 18
std::span over an initializer list P2447R6 18
std::span::at() P2821R5 14 18
Added tuple protocol to std::complex P2819R2 19
A new specification for std::generate_canonical P0952R2 19.42*
Removing deprecated typedef std::allocator::is_always_equal P2868R3 18
Removing function overload of std::basic_string::reserve() that takes no argument P2870R3 18
Remove deprecated Unicode conversion facets (<codecvt>) P2871R3 18
Freestanding: removing std::strtok P2937R0 14 19.40*
Freestanding Library: Partial Classes P2407R5 14 19.42*
Freestanding Library: inout expected span P2833R2 14 19.42*
DR23: std::basic_const_iterator should follow its underlying type’s convertibility P2836R1
P2950R0
14 19.40*
DR20: std::make_format_args now accepts only lvalue references instead of forwarding references P2905R2 14 18 19.40*
DR20: Fix formatting of code units as integers P2909R4 13.3 18 19.40*
views::concat P2542R8 15
Concatenation of strings and string views P2591R5 15 19
Enabling list-initialization for algorithms P2248R8
P3217R0
15
std::ranges::generate_random P1068R11
Comparisons for std::reference_wrapper P2944R3 14 19 (partial)*
Padded mdspan layouts P2642R6
New CTAD for std::span and std::mdspan with integral constants P3029R1 19
Atomic maximum and minimum P0493R5
std::formatter<std::filesystem::path> P2845R8
Printing Blank Lines with std::println() P3142R0 14* 19* 19.41**
Undeprecate std::polymorphic_allocator::destroy P2875R4 15 19.41*
Remove Deprecated strstreams P2867R2 19
Remove Deprecated std::shared_ptr Atomic Access APIs P2869R4
Remove std::wstring_convert P2872R3 19
DR23: Permit an efficient implementation of std::print P3107R5
P3235R3
19.43*
std::execution: sender-receiver model of execution control P2300R10
std::inplace_vector: dynamically-resizable vector with fixed capacity P0843R14
std::philox_engine: counter-based random number engine P2075R6
std::optional range support P3168R2
std::is_virtual_base_of: type trait for detecting virtual base classes P2985R0 15 20
std::dims for std::mdspan P2389R2 19
DR11: Formal specification of the type of std::ignore P2968R2 15 19 19.42*
DR20: Removing the common reference requirement from the indirectly invocable concepts P2997R1 15 19 19.42*
 

C++26 feature
 

Paper(s)
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*
IBM Open XL C/C++ for AIX*
Sun/Oracle C++*
Embarcadero C++ Builder*