Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1 | <!DOCTYPE html> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 4 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 5 | <title>Clang - C++17, C++14, C++11 and C++98 Status</title> |
Gabor Greif | dd4ddf1 | 2009-02-25 15:22:45 | [diff] [blame] | 6 | <link type="text/css" rel="stylesheet" href="menu.css"> |
| 7 | <link type="text/css" rel="stylesheet" href="content.css"> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 8 | <style type="text/css"> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 9 | .none { background-color: #FFCCCC } |
Richard Smith | 452d6b0 | 2013-05-04 07:02:10 | [diff] [blame] | 10 | .partial { background-color: #FFE0B0 } |
Richard Smith | b9a7efd | 2012-02-14 22:39:23 | [diff] [blame] | 11 | .svn { background-color: #FFFF99 } |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 12 | .full { background-color: #CCFF99 } |
Richard Smith | 6d244d7 | 2012-03-11 03:06:00 | [diff] [blame] | 13 | .na { background-color: #DDDDDD } |
Richard Smith | c61fec2 | 2017-08-30 23:10:31 | [diff] [blame] | 14 | :target { background-color: #FFFFBB; outline: #DDDD55 solid thin; } |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 15 | th { background-color: #FFDDAA } |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 16 | td { vertical-align: middle } |
Richard Smith | 29c5f16 | 2017-07-06 00:29:13 | [diff] [blame] | 17 | tt { white-space: nowrap } |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 18 | </style> |
| 19 | </head> |
| 20 | <body> |
| 21 | |
| 22 | <!--#include virtual="menu.html.incl"--> |
| 23 | |
| 24 | <div id="content"> |
| 25 | |
| 26 | <!--*************************************************************************--> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 27 | <h1>C++ Support in Clang</h1> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 28 | <!--*************************************************************************--> |
Douglas Gregor | 0799d91 | 2009-06-27 19:33:58 | [diff] [blame] | 29 | <p>Last updated: $Date$</p> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 30 | |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 31 | <p>Clang fully implements all published ISO C++ standards (<a |
| 32 | href="#cxx98">C++98 / C++03</a>, <a |
| 33 | href="#cxx11">C++11</a>, and <a |
| 34 | href="#cxx14">C++14</a>), and most of the upcoming <a |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 35 | href="#cxx17">C++17</a> standard. |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 36 | |
Richard Smith | 6058634 | 2013-12-09 08:52:23 | [diff] [blame] | 37 | <p>The Clang community is continually striving to improve C++ standards |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 38 | compliance between releases by submitting and tracking <a |
| 39 | href="cxx_dr_status.html">C++ Defect Reports</a> and implementing resolutions |
| 40 | as they become available.</p> |
| 41 | |
| 42 | <p>Experimental work is also under way to implement <a href="#ts">C++ Technical |
| 43 | Specifications</a> that will help drive the future of the C++ programming |
| 44 | language.</p> |
| 45 | |
Richard Smith | 6058634 | 2013-12-09 08:52:23 | [diff] [blame] | 46 | <p>The <a href="http://llvm.org/bugs/">LLVM bug tracker</a> contains Clang |
| 47 | C++ components that track known bugs with Clang's language conformance in |
| 48 | each language mode.</p> |
| 49 | |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 50 | <h2 id="cxx98">C++98 implementation status</h2> |
| 51 | |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 52 | <p>Clang implements all of the ISO C++ 1998 standard |
Douglas Gregor | 17aa45d | 2011-07-21 17:46:15 | [diff] [blame] | 53 | (including the defects addressed in the ISO C++ 2003 standard) |
Richard Smith | 707e3ba | 2014-06-22 16:00:05 | [diff] [blame] | 54 | except for <tt>export</tt> (which was removed in C++11). |
Douglas Gregor | bb26a92 | 2010-02-05 23:51:14 | [diff] [blame] | 55 | |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 56 | <h2 id="cxx11">C++11 implementation status</h2> |
Chris Lattner | 6fe3748 | 2010-05-21 20:59:40 | [diff] [blame] | 57 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 58 | <p>Clang 3.3 and later implement all of the <a |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 59 | href="http://www.iso.org/standard/50372.html">ISO |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 60 | C++ 2011 standard</a>. |
Chris Lattner | 6fe3748 | 2010-05-21 20:59:40 | [diff] [blame] | 61 | |
Richard Smith | 531c9a0 | 2013-03-10 00:11:00 | [diff] [blame] | 62 | <p>By default, Clang builds C++ code according to the C++98 standard, with many |
| 63 | C++11 features accepted as extensions. You can use Clang in C++11 mode with the |
| 64 | <code>-std=c++11</code> option. Clang's C++11 mode can be used |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 65 | with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++. |
Jeffrey Yasskin | cb40757 | 2011-03-29 22:27:50 | [diff] [blame] | 66 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 67 | <details> |
| 68 | <summary>List of features and minimum Clang version with support</summary> |
| 69 | |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 70 | <table width="689" border="1" cellspacing="0"> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 71 | <tr> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 72 | <th>Language Feature</th> |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 73 | <th>C++11 Proposal</th> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 74 | <th>Available in Clang?</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 75 | </tr> |
| 76 | <tr> |
| 77 | <td>Rvalue references</td> |
| 78 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html">N2118</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 79 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 80 | </tr> |
| 81 | <tr> |
| 82 | <td> Rvalue references for <code>*this</code></td> |
| 83 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm">N2439</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 84 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 85 | </tr> |
| 86 | <tr> |
| 87 | <td>Initialization of class objects by rvalues</td> |
| 88 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1610.html">N1610</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 89 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 90 | </tr> |
| 91 | <tr> |
| 92 | <td>Non-static data member initializers</td> |
| 93 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2756.htm">N2756</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 94 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 95 | </tr> |
| 96 | <tr> |
| 97 | <td>Variadic templates</td> |
| 98 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf">N2242</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 99 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 100 | </tr> |
| 101 | <tr> |
| 102 | <td> Extending variadic template template parameters</td> |
| 103 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf">N2555</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 104 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 105 | </tr> |
| 106 | <tr> |
| 107 | <td>Initializer lists</td> |
| 108 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm">N2672</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 109 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 110 | </tr> |
| 111 | <tr> |
| 112 | <td>Static assertions</td> |
| 113 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1720.html">N1720</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 114 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 115 | </tr> |
| 116 | <tr> |
| 117 | <td><code>auto</code>-typed variables</td> |
| 118 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf">N1984</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 119 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 120 | </tr> |
| 121 | <tr> |
| 122 | <td> Multi-declarator <code>auto</code></td> |
| 123 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1737.pdf">N1737</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 124 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 125 | </tr> |
| 126 | <tr> |
| 127 | <td> Removal of auto as a storage-class specifier</td> |
| 128 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2546.htm">N2546</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 129 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 130 | </tr> |
| 131 | <tr> |
| 132 | <td> New function declarator syntax</td> |
| 133 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm">N2541</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 134 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 135 | </tr> |
| 136 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 137 | <td rowspan="2">Lambda expressions</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 138 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf">N2927</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 139 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 140 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 141 | <tr> |
| 142 | <!-- from Albuquerque 2017 --> |
| 143 | <td><a href="http://wg21.link/p0588r1">P0588R1</a> (<a href="#dr">DR</a>)</td> |
| 144 | <td class="none" align="center">No</td> |
| 145 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 146 | <tr> |
| 147 | <td>Declared type of an expression</td> |
| 148 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2343.pdf">N2343</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 149 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 150 | </tr> |
| 151 | <tr> |
Douglas Gregor | 0598962 | 2012-04-10 20:00:33 | [diff] [blame] | 152 | <td> Incomplete return types</td> |
| 153 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3276.pdf">N3276</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 154 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 0598962 | 2012-04-10 20:00:33 | [diff] [blame] | 155 | </tr> |
| 156 | <tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 157 | <td>Right angle brackets</td> |
| 158 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html">N1757</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 159 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 160 | </tr> |
| 161 | <tr> |
| 162 | <td>Default template arguments for function templates</td> |
| 163 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#226">DR226</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 164 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 165 | </tr> |
| 166 | <tr> |
| 167 | <td>Solving the SFINAE problem for expressions</td> |
| 168 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2634.html">DR339</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 169 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 170 | </tr> |
| 171 | <tr> |
| 172 | <td>Alias templates</td> |
| 173 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf">N2258</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 174 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 175 | </tr> |
| 176 | <tr> |
| 177 | <td>Extern templates</td> |
| 178 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1987.htm">N1987</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 179 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 180 | </tr> |
| 181 | <tr> |
| 182 | <td>Null pointer constant</td> |
| 183 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf">N2431</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 184 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 185 | </tr> |
| 186 | <tr> |
| 187 | <td>Strongly-typed enums</td> |
| 188 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347.pdf">N2347</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 189 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 190 | </tr> |
| 191 | <tr> |
| 192 | <td>Forward declarations for enums</td> |
Richard Smith | 4b38ded | 2012-03-14 23:13:10 | [diff] [blame] | 193 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2764.pdf">N2764</a> |
| 194 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1206">DR1206</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 195 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 196 | </tr> |
| 197 | <tr> |
Richard Smith | 3dd73db | 2014-01-17 00:11:48 | [diff] [blame] | 198 | <td>Standardized attribute syntax</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 199 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">N2761</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 200 | <td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 201 | </tr> |
| 202 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 203 | <td rowspan="2">Generalized constant expressions</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 204 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 205 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 206 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 207 | <tr> |
| 208 | <!-- from Albuquerque 2017 --> |
| 209 | <td><a href="http://wg21.link/p0859r0">P0859R0</a> (<a href="#dr">DR</a>)</td> |
| 210 | <td class="none" align="center">No</td> |
| 211 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 212 | <tr> |
| 213 | <td>Alignment support</td> |
| 214 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf">N2341</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 215 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 216 | </tr> |
Richard Smith | 7e34fbd | 2014-03-14 21:21:24 | [diff] [blame] | 217 | <tr> |
| 218 | <td>Conditionally-support behavior</td> |
| 219 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1627.pdf">N1627</a></td> |
| 220 | <td class="full" align="center">Clang 2.9</td> |
| 221 | </tr> |
| 222 | <tr> |
| 223 | <td>Changing undefined behavior into diagnosable errors</td> |
| 224 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1727.pdf">N1727</a></td> |
| 225 | <td class="full" align="center">Clang 2.9</td> |
| 226 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 227 | <tr> |
| 228 | <td>Delegating constructors</td> |
| 229 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf">N1986</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 230 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 231 | </tr> |
| 232 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 233 | <td rowspan="2">Inheriting constructors</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 234 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm">N2540</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 235 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 236 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 237 | <tr> |
| 238 | <!-- from Kona 2015 --> |
| 239 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html">P0136R1</a> (<a href="#dr">DR</a>)</td> |
| 240 | <td class="full" align="center">Clang 3.9</td> |
| 241 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 242 | <tr> |
| 243 | <td>Explicit conversion operators</td> |
| 244 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf">N2437</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 245 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 246 | </tr> |
| 247 | <tr> |
| 248 | <td>New character types</td> |
| 249 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2249.html">N2249</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 250 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 251 | </tr> |
| 252 | <tr> |
| 253 | <td>Unicode string literals</td> |
| 254 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">N2442</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 255 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 256 | </tr> |
| 257 | <tr> |
| 258 | <td>Raw string literals</td> |
| 259 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">N2442</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 260 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 261 | </tr> |
| 262 | <tr> |
Richard Smith | 2a70e65 | 2012-03-09 22:27:51 | [diff] [blame] | 263 | <td>Universal character names in literals</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 264 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html">N2170</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 265 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 266 | </tr> |
| 267 | <tr> |
| 268 | <td>User-defined literals</td> |
| 269 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf">N2765</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 270 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 271 | </tr> |
| 272 | <tr> |
| 273 | <td>Standard Layout Types</td> |
| 274 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2342.htm">N2342</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 275 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 276 | </tr> |
| 277 | <tr> |
Douglas Gregor | 7ff1e7e | 2011-10-28 19:44:09 | [diff] [blame] | 278 | <td>Defaulted functions</td> |
| 279 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">N2346</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 280 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 7ff1e7e | 2011-10-28 19:44:09 | [diff] [blame] | 281 | </tr> |
| 282 | <tr> |
| 283 | <td>Deleted functions</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 284 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">N2346</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 285 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 286 | </tr> |
| 287 | <tr> |
| 288 | <td>Extended friend declarations</td> |
| 289 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1791.pdf">N1791</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 290 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 291 | </tr> |
| 292 | <tr> |
| 293 | <td>Extending <code>sizeof</code></td> |
Richard Smith | 4e83762 | 2012-02-24 18:37:14 | [diff] [blame] | 294 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2253.html">N2253</a> |
| 295 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#850">DR850</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 296 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 297 | </tr> |
| 298 | <tr> |
| 299 | <td>Inline namespaces</td> |
| 300 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2535.htm">N2535</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 301 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 302 | </tr> |
| 303 | <tr> |
| 304 | <td>Unrestricted unions</td> |
| 305 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf">N2544</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 306 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 307 | </tr> |
| 308 | <tr> |
| 309 | <td>Local and unnamed types as template arguments</td> |
| 310 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm">N2657</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 311 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 312 | </tr> |
| 313 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 314 | <td rowspan="2">Range-based for</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 315 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">N2930</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 316 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 317 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 318 | <tr> |
| 319 | <!-- from Jacksonville 2018 --> |
| 320 | <td><a href="http://wg21.link/p0962r1">P0962R1</a> (<a href="#dr">DR</a>)</td> |
| 321 | <td class="none" align="center">No</td> |
| 322 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 323 | <tr> |
| 324 | <td>Explicit virtual overrides</td> |
| 325 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm">N2928</a> |
Richard Smith | 4e83762 | 2012-02-24 18:37:14 | [diff] [blame] | 326 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm">N3206</a> |
| 327 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm">N3272</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 328 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 329 | </tr> |
| 330 | <tr> |
| 331 | <td>Minimal support for garbage collection and reachability-based leak detection</td> |
| 332 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2670.htm">N2670</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 333 | <td class="na" align="center">N/A <a href="#n2670">(2)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 334 | </tr> |
| 335 | <tr> |
| 336 | <td>Allowing move constructors to throw [noexcept]</td> |
David Blaikie | 5036161 | 2011-11-02 15:13:40 | [diff] [blame] | 337 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">N3050</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 338 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 339 | </tr> |
| 340 | <tr> |
| 341 | <td>Defining move special member functions</td> |
David Blaikie | 5036161 | 2011-11-02 15:13:40 | [diff] [blame] | 342 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html">N3053</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 343 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 344 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 345 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 346 | <tr class="separator"> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 347 | <th align="center" colspan="3">Concurrency</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 348 | </tr> |
| 349 | <tr> |
| 350 | <td>Sequence points</td> |
| 351 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html">N2239</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 352 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 353 | </tr> |
| 354 | <tr> |
| 355 | <td>Atomic operations</td> |
| 356 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 357 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 358 | </tr> |
| 359 | <tr> |
| 360 | <td>Strong Compare and Exchange</td> |
| 361 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2748.html">N2748</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 362 | <td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 363 | </tr> |
| 364 | <tr> |
| 365 | <td>Bidirectional Fences</td> |
| 366 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2752.htm">N2752</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 367 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 368 | </tr> |
Douglas Gregor | 6b6e082 | 2010-12-21 05:43:31 | [diff] [blame] | 369 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 370 | <tr> |
| 371 | <td>Memory model</td> |
| 372 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2429.htm">N2429</a></td> |
Richard Smith | bc4fc77 | 2013-01-29 04:55:18 | [diff] [blame] | 373 | <td class="full" align="center">Clang 3.2</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 374 | </tr> |
| 375 | <tr> |
| 376 | <td>Data-dependency ordering: atomics and memory model</td> |
| 377 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2664.htm">N2664</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 378 | <td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 379 | </tr> |
| 380 | <tr> |
| 381 | <td>Propagating exceptions</td> |
| 382 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html">N2179</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 383 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 384 | </tr> |
| 385 | <tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 386 | <td>Allow atomics use in signal handlers</td> |
| 387 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2547.htm">N2547</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 388 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 389 | </tr> |
| 390 | <tr> |
| 391 | <td>Thread-local storage</td> |
| 392 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2659.htm">N2659</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 393 | <td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 394 | </tr> |
| 395 | <tr> |
| 396 | <td>Dynamic initialization and destruction with concurrency</td> |
| 397 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm">N2660</a></td> |
Richard Smith | 537a834 | 2013-02-22 09:31:00 | [diff] [blame] | 398 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 399 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 400 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 401 | <tr class="separator"> |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 402 | <th align="center" colspan="3">C99 Features in C++11</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 403 | </tr> |
| 404 | <tr> |
| 405 | <td><code>__func__</code> predefined identifier</td> |
| 406 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2340.htm">N2340</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 407 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 408 | </tr> |
| 409 | <tr> |
| 410 | <td>C99 preprocessor</td> |
| 411 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm">N1653</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 412 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 413 | </tr> |
| 414 | <tr> |
| 415 | <td><code>long long</code></td> |
| 416 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1811.pdf">N1811</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 417 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 418 | </tr> |
| 419 | <tr> |
| 420 | <td>Extended integral types</td> |
| 421 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1988.pdf">N1988</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 422 | <td class="na" align="center">N/A <a href="#n1988">(6)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 423 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 424 | </table> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 425 | |
| 426 | <p> |
| 427 | <span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 428 | has no effect.</span><br> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 429 | <span id="n2670">(2): No compiler changes are required for an implementation |
| 430 | such as Clang that does not provide garbage collection.</span><br> |
| 431 | <span id="n2748">(3): All compare-exchange operations are emitted as |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 432 | strong compare-exchanges.</span><br> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 433 | <span id="n2664">(4): <code>memory_order_consume</code> is lowered to |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 434 | <code>memory_order_acquire</code>.</span><br> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 435 | <span id="n2659">(5): <code>thread_local</code> support |
| 436 | requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such |
| 437 | as <a href="http://libcxxabi.llvm.org">libc++abi</a> 3.6 or later, |
| 438 | or libsupc++ 4.8 or later.</span><br> |
| 439 | <span id="n1988">(6): No compiler changes are required for an implementation |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 440 | such as Clang that does not provide any extended integer types. |
| 441 | <code>__int128</code> is not treated as an extended integer type, |
| 442 | because changing <code>intmax_t</code> would be an ABI-incompatible |
| 443 | change.</span> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 444 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 445 | </details> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 446 | |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 447 | <h2 id="cxx14">C++14 implementation status</h2> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 448 | |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 449 | <p>Clang 3.4 and later implement all of the <a |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 450 | href="http://www.iso.org/standard/64029.html">ISO |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 451 | C++ 2014 standard</a>. |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 452 | |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 453 | <p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option |
Richard Smith | 1b88632 | 2014-08-31 04:18:54 | [diff] [blame] | 454 | (use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p> |
Richard Smith | 4cf9a1e | 2013-04-20 13:22:50 | [diff] [blame] | 455 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 456 | <details> |
| 457 | <summary>List of features and minimum Clang version with support</summary> |
| 458 | |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 459 | <table width="689" border="1" cellspacing="0"> |
| 460 | <tr> |
| 461 | <th>Language Feature</th> |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 462 | <th>C++14 Proposal</th> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 463 | <th>Available in Clang?</th> |
| 464 | </tr> |
| 465 | <tr> |
| 466 | <td>Tweak to certain C++ contextual conversions</td> |
| 467 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3323.pdf">N3323</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 468 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 469 | </tr> |
| 470 | <tr> |
Richard Smith | 0fa4fce | 2013-04-20 12:44:32 | [diff] [blame] | 471 | <td>Binary literals</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 472 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3472.pdf">N3472</a></td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 473 | <td class="full" align="center">Clang 2.9</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 474 | </tr> |
| 475 | <tr> |
Richard Smith | 74aeef5 | 2013-04-26 16:15:35 | [diff] [blame] | 476 | <td>decltype(auto)</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 477 | <td rowspan=2 style="vertical-align:middle"><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3638.html">N3638</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 478 | <td class="full" align="center">Clang 3.3</td> |
Richard Smith | 74aeef5 | 2013-04-26 16:15:35 | [diff] [blame] | 479 | </tr> |
| 480 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 481 | <td>Return type deduction for normal functions</td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 482 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 483 | </tr> |
Richard Smith | 0fa4fce | 2013-04-20 12:44:32 | [diff] [blame] | 484 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 485 | <td>Initialized lambda captures</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 486 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3648.html">N3648</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 487 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 488 | </tr> |
| 489 | <tr> |
Richard Smith | 7898d7b | 2013-04-20 12:58:57 | [diff] [blame] | 490 | <td>Generic lambdas</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 491 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3649.html">N3649</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 492 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 493 | </tr> |
| 494 | <tr> |
Richard Smith | 7898d7b | 2013-04-20 12:58:57 | [diff] [blame] | 495 | <td>Variable templates</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 496 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3651.pdf">N3651</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 497 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 498 | </tr> |
| 499 | <tr> |
Richard Smith | 7feda2f | 2013-04-20 12:49:36 | [diff] [blame] | 500 | <td>Relaxing requirements on constexpr functions</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 501 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html">N3652</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 502 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 503 | </tr> |
| 504 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 505 | <td>Member initializers and aggregates</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 506 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html">N3653</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 507 | <td class="full" align="center">Clang 3.3</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 508 | </tr> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 509 | <tr> |
Richard Smith | d3a7386 | 2013-04-20 12:57:49 | [diff] [blame] | 510 | <td>Clarifying memory allocation</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 511 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html">N3664</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 512 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 513 | </tr> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 514 | <tr> |
| 515 | <td><tt>[[deprecated]]</tt> attribute</td> |
| 516 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3760.html">N3760</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 517 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 518 | </tr> |
| 519 | <tr> |
| 520 | <td>Single quotation mark as digit separator</td> |
Richard Smith | 2d1d3ca | 2013-11-05 08:27:00 | [diff] [blame] | 521 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3781.pdf">N3781</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 522 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 523 | </tr> |
| 524 | <tr> |
Benjamin Kramer | 8ba47d0 | 2013-09-27 19:35:09 | [diff] [blame] | 525 | <td>C++ Sized Deallocation</td> |
Richard Smith | 2d1d3ca | 2013-11-05 08:27:00 | [diff] [blame] | 526 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3778.html">N3778</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 527 | <td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 528 | </tr> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 529 | </table> |
Reid Kleckner | 7ffc3fb | 2015-03-20 00:31:07 | [diff] [blame] | 530 | |
Larisse Voufo | ee3c1b2 | 2015-02-19 04:34:13 | [diff] [blame] | 531 | <p> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 532 | <span id="n3778">(7): In Clang 3.7 and later, sized deallocation is only enabled |
Reid Kleckner | 7ffc3fb | 2015-03-20 00:31:07 | [diff] [blame] | 533 | if the user passes the <code>-fsized-deallocation</code> flag. The user must |
| 534 | supply definitions of the sized deallocation functions, either by providing them |
| 535 | explicitly or by using a C++ standard library that does. <code>libstdc++</code> |
| 536 | added these functions in version 5.0, and <code>libc++</code> added them in |
| 537 | version 3.7. |
Larisse Voufo | ee3c1b2 | 2015-02-19 04:34:13 | [diff] [blame] | 538 | </span> |
| 539 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 540 | </details> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 541 | |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 542 | <h2 id="cxx17">C++17 implementation status</h2> |
Richard Smith | 76b9f23 | 2013-11-07 06:41:26 | [diff] [blame] | 543 | |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 544 | <p>Clang 5 and later implement all the features of the |
| 545 | <a href="https://www.iso.org/standard/68564.html">ISO C++ 2017 standard</a>. |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 546 | |
Richard Smith | c61fec2 | 2017-08-30 23:10:31 | [diff] [blame] | 547 | <p>You can use Clang in C++17 mode with the <code>-std=c++17</code> option |
| 548 | (use <code>-std=c++1z</code> in Clang 4 and earlier).</p> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 549 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 550 | <details open> |
| 551 | <summary>List of features and minimum Clang version with support</summary> |
| 552 | |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 553 | <table width="689" border="1" cellspacing="0"> |
| 554 | <tr> |
| 555 | <th>Language Feature</th> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 556 | <th>C++17 Proposal</th> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 557 | <th>Available in Clang?</th> |
| 558 | </tr> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 559 | <!-- Issaquah 2014 papers --> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 560 | <tr> |
| 561 | <td><tt>static_assert</tt> with no message</td> |
| 562 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3928.pdf">N3928</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 563 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 564 | </tr> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 565 | <!-- Rapperswil papers --> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 566 | <tr> |
| 567 | <td>Disabling trigraph expansion by default</td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 568 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4086.html">N4086</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 569 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 570 | </tr> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 571 | <!-- |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 572 | <tr> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 573 | <td rowspan="2">Terse range-based for loops (removed from C++17)</td> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 574 | <td rowspan="2"><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3994.htm">N3994</a></td> |
| 575 | <td class="none" align="center">Clang 3.5: Yes</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 576 | </tr> |
| 577 | <tr> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 578 | <td class="svn" align="center">SVN: No</td> |
| 579 | </tr> |
| 580 | --> |
| 581 | <tr> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 582 | <td><tt>typename</tt> in a template template parameter</td> |
| 583 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4051.html">N4051</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 584 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 585 | </tr> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 586 | <tr> |
| 587 | <td>New <tt>auto</tt> rules for direct-list-initialization |
| 588 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3922.html">N3922</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 589 | <td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 590 | </tr> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 591 | <!-- Urbana papers --> |
| 592 | <tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 593 | <td rowspan="2">Fold expressions</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 594 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4295.html">N4295</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 595 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 3e3a705 | 2014-11-08 06:08:42 | [diff] [blame] | 596 | </tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 597 | <tr> <!-- from Jacksonville --> |
| 598 | <td><a href="http://wg21.link/p0036r0">P0036R0</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 599 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 600 | </tr> |
Richard Smith | 3e3a705 | 2014-11-08 06:08:42 | [diff] [blame] | 601 | <tr> |
| 602 | <td><tt>u8</tt> character literals</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 603 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4267.html">N4267</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 604 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 605 | </tr> |
Richard Smith | 13307f5 | 2014-11-08 05:37:34 | [diff] [blame] | 606 | <tr> |
| 607 | <td>Nested namespace definition</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 608 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4230.html">N4230</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 609 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 13307f5 | 2014-11-08 05:37:34 | [diff] [blame] | 610 | </tr> |
Aaron Ballman | 730476b | 2014-11-08 15:33:35 | [diff] [blame] | 611 | <tr> |
| 612 | <td>Attributes for namespaces and enumerators</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 613 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4266.html">N4266</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 614 | <td class="full" align="center">Clang 3.6</td> |
Aaron Ballman | 730476b | 2014-11-08 15:33:35 | [diff] [blame] | 615 | </tr> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 616 | <tr> |
| 617 | <td>Allow constant evaluation for all non-type template arguments</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 618 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4268.html">N4268</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 619 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 620 | </tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 621 | <!-- Kona papers --> |
| 622 | <tr> |
| 623 | <td>Remove deprecated <tt>register</tt> storage class</td> |
| 624 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0001r1.html">P0001R1</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 625 | <td class="full" align="center">Clang 3.8</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 626 | </tr> |
| 627 | <tr> |
| 628 | <td>Remove deprecated <tt>bool</tt> increment</td> |
| 629 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0002r1.html">P0002R1</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 630 | <td class="full" align="center">Clang 3.8</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 631 | </tr> |
| 632 | <tr> |
| 633 | <td>Make exception specifications part of the type system</td> |
| 634 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0012r1.html">P0012R1</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 635 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 636 | </tr> |
| 637 | <tr> |
Richard Smith | 4a0cd89 | 2015-11-26 02:16:37 | [diff] [blame] | 638 | <td><tt>__has_include</tt> in preprocessor conditionals</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 639 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0061.html">P0061R1</a></td> |
| 640 | <td class="full" align="center">Yes</td> |
| 641 | </tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 642 | <!-- Jacksonville papers --> |
| 643 | <tr> |
| 644 | <td><tt>[[fallthrough]]</tt> attribute</td> |
| 645 | <td><a href="http://wg21.link/p0188r1">P0188R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 646 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 647 | </tr> |
| 648 | <tr> |
| 649 | <td><tt>[[nodiscard]]</tt> attribute</td> |
| 650 | <td><a href="http://wg21.link/p0189r1">P0189R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 651 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 652 | </tr> |
| 653 | <tr> |
| 654 | <td><tt>[[maybe_unused]]</tt> attribute</td> |
| 655 | <td><a href="http://wg21.link/p0212r1">P0212R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 656 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 657 | </tr> |
| 658 | <tr> |
| 659 | <td>Aggregate initialization of classes with base classes</td> |
| 660 | <td><a href="http://wg21.link/p0017r1">P0017R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 661 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 662 | </tr> |
| 663 | <tr> |
| 664 | <td><tt>constexpr</tt> lambda expressions</td> |
| 665 | <td><a href="http://wg21.link/p0170r1">P0170R1</a></td> |
Richard Smith | 4b82f9c | 2017-09-09 01:11:04 | [diff] [blame] | 666 | <td class="full" align="center">Clang 5</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 667 | </tr> |
| 668 | <tr> |
| 669 | <td>Differing <tt>begin</tt> and <tt>end</tt> types in range-based <tt>for</tt></td> |
| 670 | <td><a href="http://wg21.link/p0184r0">P0184R0</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 671 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 672 | </tr> |
| 673 | <tr> |
| 674 | <td>Lambda capture of <tt>*this</tt></td> |
| 675 | <td><a href="http://wg21.link/p0018r3">P0018R3</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 676 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 677 | </tr> |
| 678 | <tr> |
| 679 | <td>Direct-list-initialization of <tt>enum</tt>s</td> |
| 680 | <td><a href="http://wg21.link/p0138r2">P0138R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 681 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 682 | </tr> |
| 683 | <tr> |
| 684 | <td>Hexadecimal floating-point literals</td> |
| 685 | <td><a href="http://wg21.link/p0245r1">P0245R1</a></td> |
| 686 | <td class="full" align="center">Yes</td> |
| 687 | </tr> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 688 | <!-- Oulu papers --> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 689 | <tr> |
| 690 | <td>Using attribute namespaces without repetition</td> |
| 691 | <td><a href="http://wg21.link/p0028r4">P0028R4</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 692 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 693 | </tr> |
| 694 | <tr> |
| 695 | <td>Dynamic memory allocation for over-aligned data</td> |
| 696 | <td><a href="http://wg21.link/p0035r4">P0035R4</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 697 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 698 | </tr> |
| 699 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 700 | <td rowspan="3">Template argument deduction for class templates</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 701 | <td><a href="http://wg21.link/p0091r3">P0091R3</a></td> |
Richard Smith | 4b82f9c | 2017-09-09 01:11:04 | [diff] [blame] | 702 | <td rowspan="2" class="full" align="center">Clang 5</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 703 | </tr> |
Richard Smith | 19a311a | 2017-02-09 22:47:51 | [diff] [blame] | 704 | <tr> <!-- from Issaquah --> |
| 705 | <td><a href="http://wg21.link/p0512r0">P0512R0</a></td> |
Richard Smith | 19a311a | 2017-02-09 22:47:51 | [diff] [blame] | 706 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 707 | <tr> |
| 708 | <!-- from Toronto 2017 --> |
| 709 | <td><a href="http://wg21.link/p0702r1">P0702R1</a> (<a href="#dr">DR</a>)</td> |
| 710 | <td class="svn" align="center">Clang 6</td> |
| 711 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 712 | <tr> |
Richard Smith | 3a2dc6f0 | 2016-06-24 12:21:30 | [diff] [blame] | 713 | <td>Non-type template parameters with <tt>auto</tt> type</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 714 | <td><a href="http://wg21.link/p0127r2">P0127R2</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 715 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 716 | </tr> |
| 717 | <tr> |
| 718 | <td>Guaranteed copy elision</td> |
| 719 | <td><a href="http://wg21.link/p0135r1">P0135R1</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 720 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 721 | </tr> |
| 722 | <tr> |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 723 | <td rowspan=2>Stricter expression evaluation order</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 724 | <td><a href="http://wg21.link/p0145r3">P0145R3</a></td> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 725 | <td class="full" align="center" rowspan=2>Clang 4 <a href="#p0145">(9)</a></td> |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 726 | </tr> |
| 727 | <tr> |
| 728 | <td><a href="http://wg21.link/p0400r0">P0400R0</a></td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 729 | </tr> |
| 730 | <tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 731 | <td>Requirement to ignore unknown attributes</td> |
| 732 | <td><a href="http://wg21.link/p0283r2">P0283R2</a></td> |
| 733 | <td class="full" align="center">Yes</td> |
| 734 | </tr> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 735 | <tr> |
| 736 | <td><tt>constexpr</tt> <em>if-statement</em>s</td> |
| 737 | <td><a href="http://wg21.link/p0292r2">P0292R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 738 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 739 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 740 | <tr> |
| 741 | <td>Inline variables</td> |
| 742 | <td><a href="http://wg21.link/p0386r2">P0386R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 743 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 744 | </tr> |
| 745 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 746 | <td rowspan="3">Structured bindings</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 747 | <td><a href="http://wg21.link/p0217r3">P0217R3</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 748 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 749 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 750 | <tr> |
| 751 | <!-- from Jacksonville 2018 --> |
| 752 | <td><a href="http://wg21.link/p0961r1">P0961R1</a> (<a href="#dr">DR</a>)</td> |
| 753 | <td class="none" align="center">No</td> |
| 754 | </tr> |
| 755 | <tr> |
| 756 | <!-- from Jacksonville 2018 --> |
| 757 | <td><a href="http://wg21.link/p0969r0">P0969R0</a> (<a href="#dr">DR</a>)</td> |
| 758 | <td class="none" align="center">No</td> |
| 759 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 760 | <tr> |
Richard Smith | 90ea9eb | 2016-06-24 14:23:32 | [diff] [blame] | 761 | <td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 762 | <td><a href="http://wg21.link/p0305r1">P0305R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 763 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 764 | </tr> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 765 | <!-- Issaquah 2016 papers --> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 766 | <tr> |
| 767 | <td>Matching template template parameters to compatible arguments</td> |
| 768 | <td><a href="http://wg21.link/p0522r0">P0522R0</a></td> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 769 | <td class="partial" align="center">Partial <a href="#p0522">(10)</a></td> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 770 | </tr> |
| 771 | <tr> |
| 772 | <td>Removing deprecated dynamic exception specifications</td> |
| 773 | <td><a href="http://wg21.link/p0003r5">P0003R5</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 774 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 775 | </tr> |
| 776 | <tr> |
| 777 | <td>Pack expansions in <em>using-declarations</em></td> |
| 778 | <td><a href="http://wg21.link/p0195r2">P0195R2</a></td> |
Ed Schouten | f59d8df | 2017-03-16 14:21:00 | [diff] [blame] | 779 | <td class="full" align="center">Clang 4</td> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 780 | </tr> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 781 | </table> |
Richard Smith | 76b9f23 | 2013-11-07 06:41:26 | [diff] [blame] | 782 | |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 783 | <p> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 784 | <span id="n3922">(8): This is a backwards-incompatible change that is applied to |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 785 | all language versions that allow type deduction from <tt>auto</tt> |
| 786 | (per the request of the C++ committee). |
| 787 | In Clang 3.7, a warning is emitted for all cases that would change meaning. |
Richard Smith | 4a93c59 | 2016-06-28 20:37:43 | [diff] [blame] | 788 | </span><br> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 789 | <span id="p0145">(9): Under the MS ABI, function parameters are destroyed from |
Richard Smith | a560ccf | 2016-09-29 21:30:12 | [diff] [blame] | 790 | left to right in the callee. As a result, function parameters in calls to |
Richard Smith | 762672a | 2016-09-28 19:09:10 | [diff] [blame] | 791 | <tt>operator<<</tt>, <tt>operator>></tt>, <tt>operator->*</tt>, |
| 792 | <tt>operator&&</tt>, <tt>operator||</tt>, and <tt>operator,</tt> |
Richard Smith | a560ccf | 2016-09-29 21:30:12 | [diff] [blame] | 793 | functions using expression syntax are no longer guaranteed to be destroyed in |
| 794 | reverse construction order in that ABI. |
Richard Smith | e0c7500 | 2016-11-11 23:46:25 | [diff] [blame] | 795 | </span><br> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 796 | <span id="p0522">(10): Despite being the resolution to a Defect Report, this |
Richard Smith | 26b86ea | 2016-12-31 21:41:23 | [diff] [blame] | 797 | feature is disabled by default in all language versions, and can be enabled |
Richard Smith | e0c11f2 | 2017-11-30 23:07:29 | [diff] [blame] | 798 | explicitly with the flag <tt>-frelaxed-template-template-args</tt> in Clang 4 |
| 799 | onwards. |
Richard Smith | d7279bb | 2017-01-13 00:57:54 | [diff] [blame] | 800 | The change to the standard lacks a corresponding change for template partial |
| 801 | ordering, resulting in ambiguity errors for reasonable and previously-valid |
| 802 | code. This issue is expected to be rectified soon. |
Richard Smith | 5179eb7 | 2016-06-28 19:03:57 | [diff] [blame] | 803 | </span> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 804 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 805 | </details> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 806 | |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 807 | <h2 id="cxx20">C++2a implementation status</h2> |
| 808 | |
Faisal Vali | 8194a3e | 2017-08-19 03:43:07 | [diff] [blame] | 809 | <p>Clang has <b>experimental</b> support for some proposed features of |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 810 | the C++ standard following C++17, provisionally named C++2a. |
| 811 | Note that support for these features may change or be removed without notice, |
| 812 | as the draft C++2a standard evolves. |
| 813 | |
Faisal Vali | 8194a3e | 2017-08-19 03:43:07 | [diff] [blame] | 814 | <p>You can use Clang in C++2a mode with the <code>-std=c++2a</code> option.</p> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 815 | |
| 816 | <details open> |
| 817 | <summary>List of features and minimum Clang version with support</summary> |
| 818 | |
| 819 | <table width="689" border="1" cellspacing="0"> |
| 820 | <tr> |
| 821 | <th>Language Feature</th> |
| 822 | <th>C++2a Proposal</th> |
| 823 | <th>Available in Clang?</th> |
| 824 | </tr> |
| 825 | <!-- Toronto 2017 papers --> |
| 826 | <tr> |
| 827 | <td>Default member initializers for bit-fields</td> |
Richard Smith | 21a1019 | 2017-07-15 15:51:59 | [diff] [blame] | 828 | <td><a href="http://wg21.link/p0683r1">P0683R1</a></td> |
Richard Smith | c1a4022 | 2018-02-28 03:02:07 | [diff] [blame] | 829 | <td class="svn" align="center">Clang 6</td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 830 | </tr> |
| 831 | <tr> |
| 832 | <td><tt>const&</tt>-qualified pointers to members</td> |
| 833 | <td><a href="http://wg21.link/p0704r1">P0704R1</a></td> |
Richard Smith | c1a4022 | 2018-02-28 03:02:07 | [diff] [blame] | 834 | <td class="svn" align="center">Clang 6</td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 835 | </tr> |
| 836 | <tr> |
| 837 | <td>Allow <i>lambda-capture</i> <tt>[=, this]</tt></td> |
| 838 | <td><a href="http://wg21.link/p0409r2">P0409R2</a></td> |
Richard Smith | c1a4022 | 2018-02-28 03:02:07 | [diff] [blame] | 839 | <td class="svn" align="center">Clang 6</td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 840 | </tr> |
| 841 | <tr> |
| 842 | <td><tt>__VA_OPT__</tt> for preprocessor comma elision</td> |
| 843 | <td><a href="http://wg21.link/p0306r4">P0306R4</a></td> |
Richard Smith | c1a4022 | 2018-02-28 03:02:07 | [diff] [blame] | 844 | <td class="svn" align="center">Clang 6</td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 845 | </tr> |
| 846 | <tr> |
| 847 | <td>Designated initializers</td> |
| 848 | <td><a href="http://wg21.link/p0329r4">P0329R4</a></td> |
| 849 | <td class="partial" align="center">Partial (extension)</td> |
| 850 | </tr> |
| 851 | <tr> |
| 852 | <td><i>template-parameter-list</i> for generic lambdas</td> |
| 853 | <td><a href="http://wg21.link/p0428r2">P0428R2</a></td> |
| 854 | <td class="none" align="center">No</td> |
| 855 | </tr> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 856 | <tr id="p0734"> |
| 857 | <td rowspan="2">Concepts</td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 858 | <td><a href="http://wg21.link/p0734r0">P0734R0</a></td> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 859 | <td rowspan="2" class="none" align="center">No</td> |
| 860 | </tr> |
| 861 | <tr> <!-- from Albuquerque --> |
| 862 | <td><a href="http://wg21.link/p0857r0">P0857R0</a></td> |
| 863 | </tr> |
| 864 | <!-- Albuquerque papers --> |
| 865 | <tr> |
| 866 | <td>Range-based for statements with initializer</td> |
| 867 | <td><a href="http://wg21.link/p0614r1">P0614R1</a></td> |
| 868 | <td class="none" align="center">No</td> |
| 869 | </tr> |
| 870 | <tr> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 871 | <td>ADL and function templates that are not visible</td> |
| 872 | <td><a href="http://wg21.link/p0846r0">P0846R0</a></td> |
| 873 | <td class="none" align="center">No</td> |
| 874 | </tr> |
| 875 | <tr> |
| 876 | <td><tt>const</tt> mismatch with defaulted copy constructor</td> |
| 877 | <td><a href="http://wg21.link/p0641r2">P0641R2</a></td> |
| 878 | <td class="none" align="center">No</td> |
| 879 | </tr> |
| 880 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 881 | <td rowspan="2">Consistent comparison (<tt>operator<=></tt>)</td> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 882 | <td><a href="http://wg21.link/p0515r3">P0515R3</a></td> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 883 | <td rowspan="2" class="none" align="center">No</td> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 884 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 885 | <tr> <!-- from Jacksonville --> |
| 886 | <td><a href="http://wg21.link/p0905r1">P0905R1</a></td> |
| 887 | </tr> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 888 | <tr> |
| 889 | <td>Access checking on specializations</td> |
| 890 | <td><a href="http://wg21.link/p0692r1">P0692R1</a></td> |
| 891 | <td class="partial" align="center">Partial</td> |
| 892 | </tr> |
| 893 | <tr> |
| 894 | <td>Default constructible and assignable stateless lambdas</td> |
| 895 | <td><a href="http://wg21.link/p0624r2">P0624R2</a></td> |
| 896 | <td class="none" align="center">No</td> |
| 897 | </tr> |
| 898 | <tr> |
| 899 | <td>Lambdas in unevaluated contexts</td> |
| 900 | <td><a href="http://wg21.link/p0315r4">P0315R4</a></td> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 901 | <td class="none" align="center">No</td> |
| 902 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 903 | <!-- Jacksonville papers --> |
| 904 | <tr> |
| 905 | <td><tt>[[no_unique_address]]</tt> attribute</td> |
| 906 | <td><a href="http://wg21.link/p0840r2">P0840R2</a></td> |
| 907 | <td class="none" align="center">No</td> |
| 908 | </tr> |
| 909 | <tr> |
| 910 | <td><tt>[[likely]]</tt> and <tt>[[unlikely]]</tt> attributes</td> |
| 911 | <td><a href="http://wg21.link/p0479r5">P0479R5</a></td> |
| 912 | <td class="none" align="center">No</td> |
| 913 | </tr> |
| 914 | <tr> |
| 915 | <td><tt>typename</tt> optional in more contexts</td> |
| 916 | <td><a href="http://wg21.link/p0634r3">P0634R3</a></td> |
| 917 | <td class="none" align="center">No</td> |
| 918 | </tr> |
| 919 | <tr> |
| 920 | <td>Pack expansion in lambda <i>init-capture</i></td> |
| 921 | <td><a href="http://wg21.link/p0780r2">P0780R2</a></td> |
| 922 | <td class="none" align="center">No</td> |
| 923 | </tr> |
Richard Smith | da62f42 | 2017-07-15 15:42:36 | [diff] [blame] | 924 | </table> |
| 925 | </details> |
| 926 | |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 927 | <h2 id="dr">Defect reports</h2> |
| 928 | |
| 929 | <p>Clang generally aims to implement resolutions to Defect Reports (bug fixes |
| 930 | against prior standards) retroactively, in all prior standard versions where |
| 931 | the fix is meaningful. Significant Defect Report changes to language features |
| 932 | after the publication of the relevant standard are marked (DR) in the above |
| 933 | table.</p> |
| 934 | |
| 935 | <p>Clang also has a test suite for conformance to resolutions for issues on the |
| 936 | <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_toc.html">C++ core issues list</a>, |
| 937 | most of which are considered Defect Reports. |
| 938 | <a href="cxx_dr_status.html">Implementation status for C++ core issues</a> based on |
| 939 | that test suite is tracked on a separate page.</p> |
Richard Smith | 1363e8f | 2017-09-07 07:22:36 | [diff] [blame] | 940 | |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 941 | <h2 id="ts">Technical specifications and standing documents</h2> |
| 942 | |
| 943 | <p>ISO C++ also publishes a number of documents describing additional language |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 944 | and library features that are not part of standard C++.</p> |
| 945 | |
| 946 | <details open> |
| 947 | <summary>List of features and minimum Clang version with support</summary> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 948 | |
| 949 | <table width="689" border="1" cellspacing="0"> |
| 950 | <tr> |
| 951 | <th>Document</th> |
| 952 | <th>Latest draft</th> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 953 | <th>Compiler flag</th> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 954 | <th>Available in Clang?</th> |
| 955 | </tr> |
| 956 | <tr> |
Richard Smith | 9d07ae7 | 2017-08-11 03:39:40 | [diff] [blame] | 957 | <td rowspan="4">SD-6: SG10 feature test recommendations</td> |
| 958 | <td rowspan="4"><a href="http://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations">SD-6</a></td> |
| 959 | <td rowspan="4">N/A</td> |
Richard Smith | 38af856 | 2014-11-12 21:16:38 | [diff] [blame] | 960 | <td class="full" align="center"> |
| 961 | Clang 3.4 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3745">N3745</a>)</br> |
| 962 | </td> |
| 963 | </tr> |
| 964 | <tr> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 965 | <td class="full" align="center"> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 966 | Clang 3.6 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4200">N4200</a>)</a> |
Richard Smith | 38af856 | 2014-11-12 21:16:38 | [diff] [blame] | 967 | </td> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 968 | </tr> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 969 | <tr> |
Richard Smith | d7279bb | 2017-01-13 00:57:54 | [diff] [blame] | 970 | <td class="full" align="center"> |
| 971 | Clang 4 (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 972 | </td> |
| 973 | </tr> |
Richard Smith | 9d07ae7 | 2017-08-11 03:39:40 | [diff] [blame] | 974 | <tr> |
Richard Smith | 4b82f9c | 2017-09-09 01:11:04 | [diff] [blame] | 975 | <td class="full" align="center"> |
Richard Smith | 9d07ae7 | 2017-08-11 03:39:40 | [diff] [blame] | 976 | Clang 5 (<a href="http://wg21.link/p0096r4">P0096R4</a>)</a> |
| 977 | </td> |
| 978 | </tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 979 | <!-- FIXME: Implement latest recommendations. |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 980 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 981 | <td class="svn" align="center"> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 982 | SVN (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 983 | </td> |
| 984 | </tr> |
| 985 | --> |
| 986 | <!-- No compiler support is known to be needed for: |
| 987 | * Concurrency TS |
| 988 | * Parallelism TS |
| 989 | * Ranges TS |
| 990 | * Networking TS |
| 991 | * File System TS |
| 992 | --> |
| 993 | <tr> |
| 994 | <td>[TS] Concepts</td> |
| 995 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0121r0.pdf">P0121R0</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 996 | <td></td> |
Richard Smith | 137f657 | 2017-11-11 17:54:46 | [diff] [blame] | 997 | <td class="na" align="center">Superseded by <a href="#p0734">P0734R0</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 998 | </tr> |
| 999 | <tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 1000 | <!-- track unimplemented Coroutines features: p0913r1 p0914r1 --> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1001 | <td>[DRAFT TS] Coroutines</td> |
Gor Nishanov | b5543e5b32 | 2017-05-27 22:54:52 | [diff] [blame] | 1002 | <td><a href="https://isocpp.org/files/papers/N4663.pdf">N4663</a></td> |
Richard Smith | 29c5f16 | 2017-07-06 00:29:13 | [diff] [blame] | 1003 | <td><tt>-fcoroutines-ts<br>-stdlib=libc++</tt></td> |
Richard Smith | 4b82f9c | 2017-09-09 01:11:04 | [diff] [blame] | 1004 | <td class="full" align="center">Clang 5</td> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 1005 | </tr> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 1006 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 1007 | <td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td> |
Richard Smith | ea26041 | 2015-11-05 22:21:52 | [diff] [blame] | 1008 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html">N4480</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1009 | <td>N/A</td> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 1010 | <td class="none" align="center">No</td> |
| 1011 | </tr> |
| 1012 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 1013 | <td>[DRAFT TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1014 | <td><a href="http://wg21.link/n4600">N4600</a></td> |
| 1015 | <td>N/A</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 1016 | <td class="none" align="center">No</td> |
| 1017 | </tr> |
| 1018 | <tr> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1019 | <td>[DRAFT TS] Modules</td> |
Richard Smith | 29c5f16 | 2017-07-06 00:29:13 | [diff] [blame] | 1020 | <td><a href="http://wg21.link/n4667">N4667</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1021 | <td><tt>-fmodules-ts</tt></td> |
| 1022 | <td class="none" align="center">WIP</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 1023 | </tr> |
Richard Smith | a14f320 | 2018-03-17 14:28:47 | [diff] [blame] | 1024 | <tr> |
| 1025 | <td>[DRAFT TS] Reflection</td> |
| 1026 | <td><a href="http://wg21.link/p0194r6">P0194R6</a></td> |
| 1027 | <td></td> |
| 1028 | <td class="none" align="center">No</td> |
| 1029 | </tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 1030 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 1031 | <td>[TS] Transactional Memory</td> |
Richard Smith | 85864d5 | 2015-11-26 02:23:21 | [diff] [blame] | 1032 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4514.pdf">N4514</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1033 | <td></td> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 1034 | <td class="none" align="center">No</td> |
| 1035 | </tr> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 1036 | </table> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1037 | </details> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 1038 | |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 1039 | </div> |
| 1040 | </body> |
| 1041 | </html> |