C++ compiler support

From cppreference.com
< cpp
 
 
C++ language
General topics
Flow control
Conditional execution statements
Iteration statements (loops)
Jump statements
Functions
Function declaration
Lambda function declaration
inline specifier
Exception specifications (deprecated)
noexcept specifier (C++11)
Exceptions
Namespaces
Types
Specifiers
decltype (C++11)
auto (C++11)
alignas (C++11)
Storage duration specifiers
Initialization
Expressions
Alternative representations
Literals
Boolean - Integer - Floating-point
Character - String - nullptr (C++11)
User-defined (C++11)
Utilities
Attributes (C++11)
Types
typedef declaration
Type alias declaration (C++11)
Casts
Implicit conversions - Explicit conversions
static_cast - dynamic_cast
const_cast - reinterpret_cast
Memory allocation
Classes
Class-specific function properties
Special member functions
Templates
Miscellaneous
 

The following table presents compiler support for new C++ features. These include C++11, C++14, C++17 and various technical specifications.

C++ feature
 
Paper(s)
 
Version
 
HP aCC
EDG eccp
GCC
Intel C++
MSVC
IBM XLC++
Sun/Oracle C++
Embarcadero C++ Builder
Digital Mars C++
Clang
Cray
Portland Group (PGI)
alignas N2341 c++11 4.8 4.8 15.0 11.0*
14.0
13.1.2* 5.13 Yes 3.0 8.4 2015
alignof N2341 c++11 4.8 4.5 15.0 14.0 13.1.2* 5.13 Yes 2.9 8.4 2015
Atomic operations N2427 c++11 Yes 4.4 13.0 11.0 13.1.2* 5.14 Yes 3.1 8.4 2015
auto N1984(v1.0) c++11 A.06.25 4.1(v0.9) 4.4(v1.0) 11.0(v0.9)
12.0(v1.0)
10.0(v0.9) 11.1(v1.0) 5.13 Yes Yes 8.4 2015
C99 preprocessor N1653 A.06.25 4.1 4.3 11.1 14.0* 10.1 5.9 Yes Yes Yes 8.4 2015
constexpr N2235 c++11 A.06.28 4.6 4.6 13.0*
14.0
14.0* 12.1*
13.1
5.13 Yes 3.1 8.4 2015
decltype v1.0: N2343

v1.1: N3276

c++11 A.06.25 4.1(v1.0) 4.3(v1.0)
4.8.1(v1.1)
11.0(v1.0)
12.0(v1.1)
10.0(v1.0)
11.0(v1.1)
11.1(v1.0) 5.13 Yes 8.52(v1.0) 2.9 8.4 2015
Defaulted and deleted functions N2346 c++11 A.06.25 4.1 4.4 12.0 12.0 13.1 5.13 Yes 3.0 8.4 2015
Delegating constructors N1986 c++11 A.06.28 4.7 4.7 14.0 12.0 11.1 5.13 Yes 3.0 8.4 2015
Explicit conversion operators N2437 c++11 A.06.27 4.4 4.5 13.0 12.0 12.1 5.13 Yes 3.0 8.4 2015
Extended friend declarations N1791 c++11 A.06.25 4.1 4.7 11.1*
12.0
10.0*
12.0
11.1 5.13 Yes 2.9 8.4 2015
extern template N1987 c++11 A.06.25 3.9 3.3 9.0 6.0 11.1 5.13 Yes Yes 8.4 2015
Forward enum declarations N2764 c++11 4.5 4.6 11.1*
14.0
11.0 12.1 5.13 Yes 3.1 8.4 2015
Inheriting constructors N2540 c++11 4.8 4.8 15.0 14.0 13.1.1* 5.13 Yes 3.3 8.4 2015
Initializer lists N2672 c++11 A.06.28 4.5 4.4 13.0*
14.0
12.0 13.1.2* 5.13 Yes 3.1 8.4 2015
Lambda expressions v0.9: N2550

v1.0: N2658
v1.1: N2927

c++11 A.06.25 4.1(v1.1) 4.5(v1.1) 12.0(v1.1) 10.0(v1.0)
11.0(v1.1)
13.1.2* 5.13 Yes 3.1 8.4 2015
Local and unnamed types as template parameters N2657 A.06.27 4.2 4.5 12.0 10.0 13.1.2* 5.13 Yes 2.9 8.4 2015
long long N1811 c++11 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes 8.4 2015
Inline namespaces N2535 c++11 A.06.28 4.5 4.4 14.0 14.0 11.1 5.13 Yes 2.9 8.4 2015
New character types N2249 c++11 A.06.27 4.4 4.4 12.1*
14.0
14.0 13.1.1* 5.13 Yes 8.52 2.9 8.4 2015
Trailing function return types N2541 c++11 A.06.27 4.1 4.4 12.0 10.0 12.1 5.13 Yes 2.9 8.4 2015
nullptr N2431 c++11 A.06.27 4.2 4.6 12.1 10.0 13.1 5.13 Yes 8.52 2.9 8.4 2015
Unicode string literals N2442 c++11 A.06.28 4.7 4.4 11.0* 14.0 10.1*
13.1.1*
5.7 Yes 8.52 3.0 8.4 2015
Raw string literals N2442 c++11 A.06.28 4.7 4.5 14.0 12.0 13.1.1* 5.13 Yes 8.52 Yes 8.4 2015
User-defined literals N2765 c++11 4.8 4.7 15.0 14.0 13.1.2* 5.14 Yes 3.1 8.4 2015
Right angle brackets N1757 c++11 4.1 4.3 11.0 8.0 12.1 5.13 Yes Yes 8.4 2015
R-value references v1.0: N2118

v2.0: N2844
v2.1: N2844+
v3.0: N3053

c++11 A.06.25 4.5(v3.0) 4.3(v1.0)
4.5(v2.1)
4.6(v3.0)
11.1(v1.0)
12.0(v2.0)
14.0(v3.0)
10.0(v2.0)
11.0(v2.1)
14.0(v3.0)
12.1(v2.1) 5.13 Yes Yes 8.4 2015
static_assert N1720 c++11 A.06.25 4.1 4.3 11.0 10.0 11.1 5.13 Yes 8.52 2.9 8.4 2015
Strongly-typed enum N2347 c++11 A.06.25 4.0 4.4 13.0 11.0 12.1 5.13 Yes 2.9 8.4 2015
Template aliases N2258 c++11 A.06.27 4.2 4.7 12.1 12.0 13.1.1* 5.13 Yes 3.0 8.4 2015
Thread-local storage N2659 c++11 4.8 4.4*
4.8
11.1*
15.0*
10.0*
14.0
10.1*
13.1.2*
5.9* Yes 8.52* 3.3*
3.3
8.4 2015
Unrestricted unions N2544 c++11 A.06.28 4.6 4.6 14.0* 14.0 13.1.2* 5.13 Yes 3.0 8.4 2015
Type traits N1836 c++11 6.16 4.0 4.3 10.0 8.0 13.1.3 5.13 Yes 3.0 8.4 2015
Variadic templates v0.9: N2242

v1.0: N2555

c++11 A.06.27 4.1(v0.9) 4.3(v0.9)
4.4(v1.0)
12.1(v1.0) 12.0 11.1(v0.9) 5.13 Yes 2.9(v1.0) 8.4 2015
Range-for loop N2930 c++11 A.06.28 4.5 4.6 13.0 11.0 13.1.2* 5.13 Yes 3.0 8.4 2015
override and final v0.8: N2928

v0.9: N3206
v1.0: N3272

c++11 4.8(v1.0) 4.7 12.0(v0.8)
14.0(v1.0)
8.0(v0.8)
11.0(v1.0)
13.1.1* 5.13 Yes 2.9 8.4 2015
Attributes N2761 c++11 A.06.27 4.2 4.8 12.1 14.0 13.1.1* 5.13 Yes 3.3 8.4 2015
ref-qualifiers N2439 c++11 A.06.28 4.7 4.8.1 14.0 14.0 13.1.2* 5.13 Yes 2.9 8.4 2015
Non-static data member initializers N2756 c++11 A.06.28 4.6 4.7 14.0 12.0 13.1.2* 5.13 Yes 3.0 8.4 2015
Dynamic initialization and destruction with concurrency (magic statics) N2660 c++11 A.06.25 Yes 4.3 11.1* 14.0 13.1.2* 5.13 Yes 2.9 8.4 2015
noexcept N3050 c++11 A.06.28 4.5 4.6 14.0 14.0 13.1.1* 5.13 Yes 3.0 8.4 2015
Tweaked wording for contextual conversions N3323 c++14-lang 4.9 4.9 16.0 12.0 13.1.2* 3.4
Binary literals N3472 c++14-lang 4.10 4.3/4.9 11.0 14.0 13.1.2* 5.14 2.9 2015
decltype(auto), Return type deduction for normal functions N3638 c++14-lang 4.9 4.8/4.9 15.0 14.0 13.1.2* 3.3/3.4
Initialized/Generalized lambda captures (init-capture) N3648 c++14-lang 4.10 4.5/4.9 15.0 14.0 3.4  ?
Generic (polymorphic) lambda expressions N3649 c++14-lang 4.10 4.9 16.0 14.0 13.1.2* 3.4  ?
Variable templates N3651 c++14-lang 5.0 14.2 13.1.2* 3.4
Extended constexpr N3652 c++14-lang 5 13.1.2* 3.4
Member initializers and aggregates (NSDMI) N3653 c++14-lang 4.9 5 16.0 5.14 3.3
Clarifying memory allocation (avoiding/fusing allocations) N3664 c++14-lang N/A N/A N/A 3.4
Deprecated attribute N3760 c++14-lang 4.9 4.9 15.0* 14.0 13.1.2* 5.14 3.4
Sized deallocation N3778 c++14-lang 4.10.1 5 14.0 5.14 3.4
Single quote as digit separator N3781 c++14-lang 4.10 4.9 16.0 14.0 13.1.2* 5.14 3.4 2015
std::result_of and SFINAE N3462 c++14 N/A 5.0 N/A 14.2 Yes Yes
constexpr for <complex> N3302 c++14 N/A 5.0 N/A 14.0 3.4
constexpr for <chrono> N3469 c++14 N/A 5.0 N/A 14.0 3.4
constexpr for <array> N3470 c++14 N/A 5.0 N/A 14.0 3.4
constexpr for <initializer_list>, <utility> and <tuple> N3471 c++14 N/A 5.0 N/A 14.0 3.4
Improved std::integral_constant N3545 c++14 N/A 5.0 N/A 14.0 3.4
User-defined literals for <chrono> and <string> N3642 c++14 N/A 5.0 N/A 14.0 3.4
Null forward iterators N3644 c++14 N/A 5.0* N/A 14.0 3.4
std::quoted N3654 c++14 N/A 5.0 N/A 14.0 3.4
Heterogeneous associative lookup N3657 c++14 N/A 5.0 N/A 14.0 3.4
std::integer_sequence N3658 c++14 N/A 5.0 N/A 14.0 3.4
std::shared_mutex (timed) N3659 c++14 N/A 5.0 N/A 14.0 3.4
std::exchange N3668 c++14 N/A 5.0 N/A 14.0 3.4
fixing constexpr member functions without const N3669 c++14 N/A 5.0 N/A 14.0 3.4
std::get<T>() N3670 c++14 N/A 5.0 N/A 14.0 3.4
Dual-Range std::equal, std::is_permutation, std::mismatch N3671 c++14 N/A 5.0 N/A 14.0 3.4
Improving std::pair and std::tuple N4387 c++17 N/A Yes N/A 14.2
std::shared_mutex (untimed) N4508 c++17 N/A 6.0 N/A Yes 3.7
__has_include in preprocessor conditionals P0061R1 c++17 5.0 Yes

* - hover over the version number to see notes


[edit] References

Individual vendor compatibility checklists (these are more up-to-date than the table above)

  • GCC (Updated 2015-12)
  • Clang++ (Updated 2015-12)
  • Microsoft Visual Studio (updated 2016-01)
  • C++11/C++14/C++17 core language support status
  • Intel C++ (Updated 2016-01)
  • EDG (Updated 2016-01)
  • Oracle C++ (updated 2016-01)
  • libCstd (RogueWave Standard Library version 2), predates C++98
  • stlport4 (STLport Standard Library version 4.5.3), predates C++03
  • stdcxx4 (Apache Standard Library version 4), predates C++11
  • IBM XL C++ (updated 2015-12)
  • HP aCC
  • Digital Mars C++
  • Embarcadero C++
  • Cray (updated 2015-12)
  • [2] For version 8.4, claims all of C++11 is supported except alignas
  • Portland Group (PGI) (updated 2015-12)
  • [3] Release notes for 2015 claim full C++11, incremental C++14. The C++14 support includes "lambdas" but that could refer to either or both of 2 different working papers, N3648 or N3649