blob: 8861638de4769c1da6d64b7e0a275f5c9b40154a [file] [log] [blame]
Richard Smithe2bf8782016-09-28 21:01:371<!DOCTYPE html>
Cedric Venet084381332009-02-14 20:20:192<html>
3<head>
Richard Smithe2bf8782016-09-28 21:01:374 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Richard Smithda62f422017-07-15 15:42:365 <title>Clang - C++17, C++14, C++11 and C++98 Status</title>
Gabor Greifdd4ddf12009-02-25 15:22:456 <link type="text/css" rel="stylesheet" href="menu.css">
7 <link type="text/css" rel="stylesheet" href="content.css">
Cedric Venet084381332009-02-14 20:20:198 <style type="text/css">
Michael J. Spencere73bd642011-11-02 06:29:379 .none { background-color: #FFCCCC }
Richard Smith452d6b02013-05-04 07:02:1010 .partial { background-color: #FFE0B0 }
Richard Smithb9a7efd2012-02-14 22:39:2311 .svn { background-color: #FFFF99 }
Michael J. Spencere73bd642011-11-02 06:29:3712 .full { background-color: #CCFF99 }
Richard Smith6d244d72012-03-11 03:06:0013 .na { background-color: #DDDDDD }
Richard Smithc61fec22017-08-30 23:10:3114 :target { background-color: #FFFFBB; outline: #DDDD55 solid thin; }
Benjamin Kramer1c9e1582011-11-05 10:11:3615 th { background-color: #FFDDAA }
Richard Smith63497c62016-07-14 00:14:5916 td { vertical-align: middle }
Richard Smith29c5f162017-07-06 00:29:1317 tt { white-space: nowrap }
Cedric Venet084381332009-02-14 20:20:1918 </style>
19</head>
20<body>
21
22<!--#include virtual="menu.html.incl"-->
23
24<div id="content">
25
26<!--*************************************************************************-->
Richard Smithcf31c6b2014-06-20 20:33:1027<h1>C++ Support in Clang</h1>
Cedric Venet084381332009-02-14 20:20:1928<!--*************************************************************************-->
Douglas Gregor0799d912009-06-27 19:33:5829<p>Last updated: $Date$</p>
Cedric Venet084381332009-02-14 20:20:1930
Richard Smith01881102016-09-28 19:22:3631<p>Clang fully implements all published ISO C++ standards (<a
32href="#cxx98">C++98 / C++03</a>, <a
33href="#cxx11">C++11</a>, and <a
34href="#cxx14">C++14</a>), and most of the upcoming <a
Richard Smithda62f422017-07-15 15:42:3635href="#cxx17">C++17</a> standard.
Alp Toker05f89432013-12-06 06:35:4936
Richard Smith60586342013-12-09 08:52:2337<p>The Clang community is continually striving to improve C++ standards
Alp Toker05f89432013-12-06 06:35:4938compliance between releases by submitting and tracking <a
39href="cxx_dr_status.html">C++ Defect Reports</a> and implementing resolutions
40as they become available.</p>
41
42<p>Experimental work is also under way to implement <a href="#ts">C++ Technical
43Specifications</a> that will help drive the future of the C++ programming
44language.</p>
45
Richard Smith60586342013-12-09 08:52:2346<p>The <a href="http://llvm.org/bugs/">LLVM bug tracker</a> contains Clang
47C++ components that track known bugs with Clang's language conformance in
48each language mode.</p>
49
Richard Smith18743de2012-02-24 18:42:0850<h2 id="cxx98">C++98 implementation status</h2>
51
Alp Toker05f89432013-12-06 06:35:4952<p>Clang implements all of the ISO C++ 1998 standard
Douglas Gregor17aa45d2011-07-21 17:46:1553 (including the defects addressed in the ISO C++ 2003 standard)
Richard Smith707e3ba2014-06-22 16:00:0554 except for <tt>export</tt> (which was removed in C++11).
Douglas Gregorbb26a922010-02-05 23:51:1455
Richard Smith18743de2012-02-24 18:42:0856<h2 id="cxx11">C++11 implementation status</h2>
Chris Lattner6fe37482010-05-21 20:59:4057
Richard Smithe2bf8782016-09-28 21:01:3758<p>Clang 3.3 and later implement all of the <a
Richard Smitha14f3202018-03-17 14:28:4759 href="http://www.iso.org/standard/50372.html">ISO
Richard Smithe2bf8782016-09-28 21:01:3760 C++ 2011 standard</a>.
Chris Lattner6fe37482010-05-21 20:59:4061
Richard Smith531c9a02013-03-10 00:11:0062<p>By default, Clang builds C++ code according to the C++98 standard, with many
63C++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 Smith01881102016-09-28 19:22:3665with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.
Jeffrey Yasskincb407572011-03-29 22:27:5066
Richard Smithe2bf8782016-09-28 21:01:3767<details>
68<summary>List of features and minimum Clang version with support</summary>
69
Cedric Venet084381332009-02-14 20:20:1970<table width="689" border="1" cellspacing="0">
Douglas Gregor1f64b592011-10-14 23:21:4971 <tr>
Benjamin Kramer1c9e1582011-11-05 10:11:3672 <th>Language Feature</th>
Richard Smith18743de2012-02-24 18:42:0873 <th>C++11 Proposal</th>
Benjamin Kramer1c9e1582011-11-05 10:11:3674 <th>Available in Clang?</th>
Douglas Gregor1f64b592011-10-14 23:21:4975 </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. Spencere73bd642011-11-02 06:29:3779 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:4980 </tr>
81 <tr>
82 <td>&nbsp;&nbsp;&nbsp;&nbsp;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 Kramer1c9e1582011-11-05 10:11:3684 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:4985 </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. Spencere73bd642011-11-02 06:29:3789 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:4990 </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 Kramer1c9e1582011-11-05 10:11:3694 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:4995 </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. Spencere73bd642011-11-02 06:29:3799 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49100 </tr>
101 <tr>
102 <td>&nbsp;&nbsp;&nbsp;&nbsp;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. Spencere73bd642011-11-02 06:29:37104 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49105 </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 Smith607d6312012-05-23 01:38:11109 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49110 </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. Spencere73bd642011-11-02 06:29:37114 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49115 </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. Spencere73bd642011-11-02 06:29:37119 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49120 </tr>
121 <tr>
122 <td>&nbsp;&nbsp;&nbsp;&nbsp;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. Spencere73bd642011-11-02 06:29:37124 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49125 </tr>
126 <tr>
127 <td>&nbsp;&nbsp;&nbsp;&nbsp;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. Spencere73bd642011-11-02 06:29:37129 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49130 </tr>
131 <tr>
132 <td>&nbsp;&nbsp;&nbsp;&nbsp;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. Spencere73bd642011-11-02 06:29:37134 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49135 </tr>
136 <tr>
Richard Smitha14f3202018-03-17 14:28:47137 <td rowspan="2">Lambda expressions</td>
Douglas Gregor1f64b592011-10-14 23:21:49138 <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf">N2927</a></td>
Richard Smith607d6312012-05-23 01:38:11139 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49140 </tr>
Richard Smitha14f3202018-03-17 14:28:47141 <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 Gregor1f64b592011-10-14 23:21:49146 <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. Spencere73bd642011-11-02 06:29:37149 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49150 </tr>
151 <tr>
Douglas Gregor05989622012-04-10 20:00:33152 <td>&nbsp;&nbsp;&nbsp;&nbsp;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 Smith607d6312012-05-23 01:38:11154 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor05989622012-04-10 20:00:33155 </tr>
156 <tr>
Douglas Gregor1f64b592011-10-14 23:21:49157 <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. Spencere73bd642011-11-02 06:29:37159 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49160 </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. Spencere73bd642011-11-02 06:29:37164 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49165 </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. Spencere73bd642011-11-02 06:29:37169 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49170 </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. Spencere73bd642011-11-02 06:29:37174 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49175 </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. Spencere73bd642011-11-02 06:29:37179 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49180 </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. Spencere73bd642011-11-02 06:29:37184 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49185 </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. Spencere73bd642011-11-02 06:29:37189 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49190 </tr>
191 <tr>
192 <td>Forward declarations for enums</td>
Richard Smith4b38ded2012-03-14 23:13:10193 <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 Smith607d6312012-05-23 01:38:11195 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49196 </tr>
197 <tr>
Richard Smith3dd73db2014-01-17 00:11:48198 <td>Standardized attribute syntax</td>
Douglas Gregor1f64b592011-10-14 23:21:49199 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">N2761</a></td>
Richard Smith99247722013-06-17 23:54:23200 <td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49201 </tr>
202 <tr>
Richard Smitha14f3202018-03-17 14:28:47203 <td rowspan="2">Generalized constant expressions</td>
Douglas Gregor1f64b592011-10-14 23:21:49204 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a></td>
Richard Smith607d6312012-05-23 01:38:11205 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49206 </tr>
Richard Smitha14f3202018-03-17 14:28:47207 <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 Gregor1f64b592011-10-14 23:21:49212 <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 Smith99247722013-06-17 23:54:23215 <td class="full" align="center">Clang 3.3</td>
Douglas Gregor1f64b592011-10-14 23:21:49216 </tr>
Richard Smith7e34fbd2014-03-14 21:21:24217 <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 Gregor1f64b592011-10-14 23:21:49227 <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 Kramer1c9e1582011-11-05 10:11:36230 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49231 </tr>
232 <tr>
Richard Smitha14f3202018-03-17 14:28:47233 <td rowspan="2">Inheriting constructors</td>
Douglas Gregor1f64b592011-10-14 23:21:49234 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm">N2540</a></td>
Richard Smith99247722013-06-17 23:54:23235 <td class="full" align="center">Clang 3.3</td>
Douglas Gregor1f64b592011-10-14 23:21:49236 </tr>
Richard Smitha14f3202018-03-17 14:28:47237 <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 Gregor1f64b592011-10-14 23:21:49242 <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. Spencere73bd642011-11-02 06:29:37245 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49246 </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. Spencere73bd642011-11-02 06:29:37250 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49251 </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. Spencere73bd642011-11-02 06:29:37255 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49256 </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. Spencere73bd642011-11-02 06:29:37260 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49261 </tr>
262 <tr>
Richard Smith2a70e652012-03-09 22:27:51263 <td>Universal character names in literals</td>
Douglas Gregor1f64b592011-10-14 23:21:49264 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html">N2170</a></td>
Richard Smith607d6312012-05-23 01:38:11265 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49266 </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 Smith607d6312012-05-23 01:38:11270 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49271 </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. Spencere73bd642011-11-02 06:29:37275 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49276 </tr>
277 <tr>
Douglas Gregor7ff1e7e2011-10-28 19:44:09278 <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. Spencere73bd642011-11-02 06:29:37280 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor7ff1e7e2011-10-28 19:44:09281 </tr>
282 <tr>
283 <td>Deleted functions</td>
Douglas Gregor1f64b592011-10-14 23:21:49284 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">N2346</a></td>
Michael J. Spencere73bd642011-11-02 06:29:37285 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49286 </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. Spencere73bd642011-11-02 06:29:37290 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49291 </tr>
292 <tr>
293 <td>Extending <code>sizeof</code></td>
Richard Smith4e837622012-02-24 18:37:14294 <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 Smith607d6312012-05-23 01:38:11296 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49297 </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. Spencere73bd642011-11-02 06:29:37301 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49302 </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 Smith607d6312012-05-23 01:38:11306 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49307 </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. Spencere73bd642011-11-02 06:29:37311 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49312 </tr>
313 <tr>
Richard Smitha14f3202018-03-17 14:28:47314 <td rowspan="2">Range-based for</td>
Douglas Gregor1f64b592011-10-14 23:21:49315 <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">N2930</a></td>
Michael J. Spencere73bd642011-11-02 06:29:37316 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49317 </tr>
Richard Smitha14f3202018-03-17 14:28:47318 <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 Gregor1f64b592011-10-14 23:21:49323 <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 Smith4e837622012-02-24 18:37:14326 <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. Spencere73bd642011-11-02 06:29:37328 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49329 </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 Smithd997cce2014-03-14 20:26:09333 <td class="na" align="center">N/A <a href="#n2670">(2)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49334 </tr>
335 <tr>
336 <td>Allowing move constructors to throw [noexcept]</td>
David Blaikie50361612011-11-02 15:13:40337 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">N3050</a></td>
Michael J. Spencere73bd642011-11-02 06:29:37338 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49339 </tr>
340 <tr>
341 <td>Defining move special member functions</td>
David Blaikie50361612011-11-02 15:13:40342 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html">N3053</a></td>
Michael J. Spencere73bd642011-11-02 06:29:37343 <td class="full" align="center">Clang 3.0</td>
Douglas Gregor1f64b592011-10-14 23:21:49344 </tr>
Cedric Venet084381332009-02-14 20:20:19345
Douglas Gregor1f64b592011-10-14 23:21:49346 <tr class="separator">
Benjamin Kramer1c9e1582011-11-05 10:11:36347 <th align="center" colspan="3">Concurrency</th>
Douglas Gregor1f64b592011-10-14 23:21:49348 </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 Smith99247722013-06-17 23:54:23352 <td class="full" align="center">Clang 3.3</td>
Douglas Gregor1f64b592011-10-14 23:21:49353 </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 Smith607d6312012-05-23 01:38:11357 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49358 </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 Smithd997cce2014-03-14 20:26:09362 <td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49363 </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 Smith607d6312012-05-23 01:38:11367 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49368 </tr>
Douglas Gregor6b6e0822010-12-21 05:43:31369
Douglas Gregor1f64b592011-10-14 23:21:49370 <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 Smithbc4fc772013-01-29 04:55:18373 <td class="full" align="center">Clang 3.2</td>
Douglas Gregor1f64b592011-10-14 23:21:49374 </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 Smithd997cce2014-03-14 20:26:09378 <td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49379 </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. Spencere73bd642011-11-02 06:29:37383 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49384 </tr>
385 <tr>
Douglas Gregor1f64b592011-10-14 23:21:49386 <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 Smith607d6312012-05-23 01:38:11388 <td class="full" align="center">Clang 3.1</td>
Douglas Gregor1f64b592011-10-14 23:21:49389 </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 Smith952923b2016-02-09 22:48:14393 <td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49394 </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 Smith537a8342013-02-22 09:31:00398 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49399 </tr>
Cedric Venet084381332009-02-14 20:20:19400
Douglas Gregor1f64b592011-10-14 23:21:49401 <tr class="separator">
Richard Smith18743de2012-02-24 18:42:08402 <th align="center" colspan="3">C99 Features in C++11</th>
Douglas Gregor1f64b592011-10-14 23:21:49403 </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. Spencere73bd642011-11-02 06:29:37407 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49408 </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. Spencere73bd642011-11-02 06:29:37412 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49413 </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. Spencere73bd642011-11-02 06:29:37417 <td class="full" align="center">Clang 2.9</td>
Douglas Gregor1f64b592011-10-14 23:21:49418 </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 Smith952923b2016-02-09 22:48:14422 <td class="na" align="center">N/A <a href="#n1988">(6)</a></td>
Douglas Gregor1f64b592011-10-14 23:21:49423 </tr>
Cedric Venet084381332009-02-14 20:20:19424</table>
Richard Smith9deb9d92013-03-12 19:56:09425
426<p>
427<span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute
Richard Smith38546ed2013-03-18 21:57:52428has no effect.</span><br>
Richard Smithd997cce2014-03-14 20:26:09429<span id="n2670">(2): No compiler changes are required for an implementation
430such as Clang that does not provide garbage collection.</span><br>
431<span id="n2748">(3): All compare-exchange operations are emitted as
Richard Smith38546ed2013-03-18 21:57:52432strong compare-exchanges.</span><br>
Richard Smithd997cce2014-03-14 20:26:09433<span id="n2664">(4): <code>memory_order_consume</code> is lowered to
Richard Smith38546ed2013-03-18 21:57:52434<code>memory_order_acquire</code>.</span><br>
Richard Smith952923b2016-02-09 22:48:14435<span id="n2659">(5): <code>thread_local</code> support
436requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such
437as <a href="http://libcxxabi.llvm.org">libc++abi</a> 3.6 or later,
438or libsupc++ 4.8 or later.</span><br>
439<span id="n1988">(6): No compiler changes are required for an implementation
Richard Smithd997cce2014-03-14 20:26:09440such as Clang that does not provide any extended integer types.
441<code>__int128</code> is not treated as an extended integer type,
442because changing <code>intmax_t</code> would be an ABI-incompatible
443change.</span>
Richard Smith9deb9d92013-03-12 19:56:09444</p>
Richard Smithe2bf8782016-09-28 21:01:37445</details>
Richard Smith9deb9d92013-03-12 19:56:09446
Richard Smith20f37672014-08-31 04:17:48447<h2 id="cxx14">C++14 implementation status</h2>
Richard Smith91725202013-04-19 17:27:48448
Richard Smith01881102016-09-28 19:22:36449<p>Clang 3.4 and later implement all of the <a
Richard Smitha14f3202018-03-17 14:28:47450 href="http://www.iso.org/standard/64029.html">ISO
Richard Smithe2bf8782016-09-28 21:01:37451 C++ 2014 standard</a>.
Richard Smith91725202013-04-19 17:27:48452
Richard Smith20f37672014-08-31 04:17:48453<p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option
Richard Smith1b886322014-08-31 04:18:54454(use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p>
Richard Smith4cf9a1e2013-04-20 13:22:50455
Richard Smithe2bf8782016-09-28 21:01:37456<details>
457<summary>List of features and minimum Clang version with support</summary>
458
Richard Smith91725202013-04-19 17:27:48459<table width="689" border="1" cellspacing="0">
460 <tr>
461 <th>Language Feature</th>
Richard Smith20f37672014-08-31 04:17:48462 <th>C++14 Proposal</th>
Richard Smith91725202013-04-19 17:27:48463 <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 Smith7fe89622014-02-03 06:58:08468 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48469 </tr>
470 <tr>
Richard Smith0fa4fce2013-04-20 12:44:32471 <td>Binary literals</td>
Richard Smith91725202013-04-19 17:27:48472 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3472.pdf">N3472</a></td>
Benjamin Kramereb0ad452015-02-09 11:48:43473 <td class="full" align="center">Clang 2.9</td>
Richard Smith91725202013-04-19 17:27:48474 </tr>
475 <tr>
Richard Smith74aeef52013-04-26 16:15:35476 <td>decltype(auto)</td>
Richard Smithf2f6e1142013-05-09 18:53:17477 <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 Smith99247722013-06-17 23:54:23478 <td class="full" align="center">Clang 3.3</td>
Richard Smith74aeef52013-04-26 16:15:35479 </tr>
480 <tr>
Richard Smith5db8b282013-04-20 12:47:36481 <td>Return type deduction for normal functions</td>
Richard Smith7fe89622014-02-03 06:58:08482 <td class="full" align="center">Clang 3.4</td>
Richard Smith5db8b282013-04-20 12:47:36483 </tr>
Richard Smith0fa4fce2013-04-20 12:44:32484 <tr>
Richard Smith5db8b282013-04-20 12:47:36485 <td>Initialized lambda captures</td>
Richard Smithf2f6e1142013-05-09 18:53:17486 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3648.html">N3648</a></td>
Richard Smith7fe89622014-02-03 06:58:08487 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48488 </tr>
489 <tr>
Richard Smith7898d7b2013-04-20 12:58:57490 <td>Generic lambdas</td>
Richard Smithf2f6e1142013-05-09 18:53:17491 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3649.html">N3649</a></td>
Richard Smith7fe89622014-02-03 06:58:08492 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48493 </tr>
494 <tr>
Richard Smith7898d7b2013-04-20 12:58:57495 <td>Variable templates</td>
Richard Smithf2f6e1142013-05-09 18:53:17496 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3651.pdf">N3651</a></td>
Richard Smith7fe89622014-02-03 06:58:08497 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48498 </tr>
499 <tr>
Richard Smith7feda2f2013-04-20 12:49:36500 <td>Relaxing requirements on constexpr functions</td>
Richard Smithf2f6e1142013-05-09 18:53:17501 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html">N3652</a></td>
Richard Smith7fe89622014-02-03 06:58:08502 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48503 </tr>
504 <tr>
Richard Smith5db8b282013-04-20 12:47:36505 <td>Member initializers and aggregates</td>
Richard Smithf2f6e1142013-05-09 18:53:17506 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html">N3653</a></td>
Richard Smith99247722013-06-17 23:54:23507 <td class="full" align="center">Clang 3.3</td>
Richard Smith91725202013-04-19 17:27:48508 </tr>
Richard Smith91725202013-04-19 17:27:48509 <tr>
Richard Smithd3a73862013-04-20 12:57:49510 <td>Clarifying memory allocation</td>
Richard Smithf2f6e1142013-05-09 18:53:17511 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html">N3664</a></td>
Richard Smith7fe89622014-02-03 06:58:08512 <td class="full" align="center">Clang 3.4</td>
Richard Smith91725202013-04-19 17:27:48513 </tr>
Richard Smith3ca005b2013-09-27 19:11:33514 <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 Smith7fe89622014-02-03 06:58:08517 <td class="full" align="center">Clang 3.4</td>
Richard Smith3ca005b2013-09-27 19:11:33518 </tr>
519 <tr>
520 <td>Single quotation mark as digit separator</td>
Richard Smith2d1d3ca2013-11-05 08:27:00521 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3781.pdf">N3781</a></td>
Richard Smith7fe89622014-02-03 06:58:08522 <td class="full" align="center">Clang 3.4</td>
Richard Smith3ca005b2013-09-27 19:11:33523 </tr>
524 <tr>
Benjamin Kramer8ba47d02013-09-27 19:35:09525 <td>C++ Sized Deallocation</td>
Richard Smith2d1d3ca2013-11-05 08:27:00526 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3778.html">N3778</a></td>
Richard Smith952923b2016-02-09 22:48:14527 <td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td>
Richard Smith3ca005b2013-09-27 19:11:33528 </tr>
Richard Smith91725202013-04-19 17:27:48529</table>
Reid Kleckner7ffc3fb2015-03-20 00:31:07530
Larisse Voufoee3c1b22015-02-19 04:34:13531<p>
Richard Smith952923b2016-02-09 22:48:14532<span id="n3778">(7): In Clang 3.7 and later, sized deallocation is only enabled
Reid Kleckner7ffc3fb2015-03-20 00:31:07533if the user passes the <code>-fsized-deallocation</code> flag. The user must
534supply definitions of the sized deallocation functions, either by providing them
535explicitly or by using a C++ standard library that does. <code>libstdc++</code>
536added these functions in version 5.0, and <code>libc++</code> added them in
537version 3.7.
Larisse Voufoee3c1b22015-02-19 04:34:13538</span>
539</p>
Richard Smithe2bf8782016-09-28 21:01:37540</details>
Richard Smith91725202013-04-19 17:27:48541
Richard Smithda62f422017-07-15 15:42:36542<h2 id="cxx17">C++17 implementation status</h2>
Richard Smith76b9f232013-11-07 06:41:26543
Richard Smitha14f3202018-03-17 14:28:47544<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 Smithcf31c6b2014-06-20 20:33:10546
Richard Smithc61fec22017-08-30 23:10:31547<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 Smithcf31c6b2014-06-20 20:33:10549
Richard Smithe2bf8782016-09-28 21:01:37550<details open>
551<summary>List of features and minimum Clang version with support</summary>
552
Richard Smithcf31c6b2014-06-20 20:33:10553<table width="689" border="1" cellspacing="0">
554 <tr>
555 <th>Language Feature</th>
Richard Smithda62f422017-07-15 15:42:36556 <th>C++17 Proposal</th>
Richard Smithcf31c6b2014-06-20 20:33:10557 <th>Available in Clang?</th>
558 </tr>
Richard Smith5a20d7e2016-11-11 22:48:43559 <!-- Issaquah 2014 papers -->
Richard Smithcf31c6b2014-06-20 20:33:10560 <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 Smithee0a49c2014-09-11 17:30:32563 <td class="full" align="center">Clang 3.5</td>
Richard Smithcf31c6b2014-06-20 20:33:10564 </tr>
Richard Smith0f0af192014-11-08 05:07:16565 <!-- Rapperswil papers -->
Richard Smithcf31c6b2014-06-20 20:33:10566 <tr>
567 <td>Disabling trigraph expansion by default</td>
Richard Smith410cc892014-11-26 03:26:53568 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4086.html">N4086</a></td>
Richard Smithee0a49c2014-09-11 17:30:32569 <td class="full" align="center">Clang 3.5</td>
Richard Smithcf31c6b2014-06-20 20:33:10570 </tr>
Richard Smith83d3f152014-11-27 01:54:27571 <!--
Richard Smithcf31c6b2014-06-20 20:33:10572 <tr>
Richard Smithda62f422017-07-15 15:42:36573 <td rowspan="2">Terse range-based for loops (removed from C++17)</td>
Richard Smith83d3f152014-11-27 01:54:27574 <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 Smithcf31c6b2014-06-20 20:33:10576 </tr>
577 <tr>
Richard Smith83d3f152014-11-27 01:54:27578 <td class="svn" align="center">SVN: No</td>
579 </tr>
580 -->
581 <tr>
Richard Smithcf31c6b2014-06-20 20:33:10582 <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 Smithee0a49c2014-09-11 17:30:32584 <td class="full" align="center">Clang 3.5</td>
Richard Smithcf31c6b2014-06-20 20:33:10585 </tr>
Richard Smith410cc892014-11-26 03:26:53586 <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 Smith25dde972016-03-20 10:37:12589 <td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td>
Richard Smith410cc892014-11-26 03:26:53590 </tr>
Richard Smith0f0af192014-11-08 05:07:16591 <!-- Urbana papers -->
592 <tr>
Richard Smithf006a962016-03-04 21:01:14593 <td rowspan="2">Fold expressions</td>
Benjamin Kramereb0ad452015-02-09 11:48:43594 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4295.html">N4295</a></td>
Richard Smith42b10572015-11-11 01:36:17595 <td class="full" align="center">Clang 3.6</td>
Richard Smith3e3a7052014-11-08 06:08:42596 </tr>
Richard Smithf006a962016-03-04 21:01:14597 <tr> <!-- from Jacksonville -->
598 <td><a href="http://wg21.link/p0036r0">P0036R0</a></td>
Richard Smithb1a268a2016-08-15 02:47:23599 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14600 </tr>
Richard Smith3e3a7052014-11-08 06:08:42601 <tr>
602 <td><tt>u8</tt> character literals</td>
Benjamin Kramereb0ad452015-02-09 11:48:43603 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4267.html">N4267</a></td>
Richard Smith42b10572015-11-11 01:36:17604 <td class="full" align="center">Clang 3.6</td>
Richard Smith0f0af192014-11-08 05:07:16605 </tr>
Richard Smith13307f52014-11-08 05:37:34606 <tr>
607 <td>Nested namespace definition</td>
Benjamin Kramereb0ad452015-02-09 11:48:43608 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4230.html">N4230</a></td>
Richard Smith42b10572015-11-11 01:36:17609 <td class="full" align="center">Clang 3.6</td>
Richard Smith13307f52014-11-08 05:37:34610 </tr>
Aaron Ballman730476b2014-11-08 15:33:35611 <tr>
612 <td>Attributes for namespaces and enumerators</td>
Benjamin Kramereb0ad452015-02-09 11:48:43613 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4266.html">N4266</a></td>
Richard Smith42b10572015-11-11 01:36:17614 <td class="full" align="center">Clang 3.6</td>
Aaron Ballman730476b2014-11-08 15:33:35615 </tr>
Richard Smith410cc892014-11-26 03:26:53616 <tr>
617 <td>Allow constant evaluation for all non-type template arguments</td>
Benjamin Kramereb0ad452015-02-09 11:48:43618 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4268.html">N4268</a></td>
Richard Smith42b10572015-11-11 01:36:17619 <td class="full" align="center">Clang 3.6</td>
Richard Smith410cc892014-11-26 03:26:53620 </tr>
Richard Smith894835f2015-11-05 21:41:06621 <!-- 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 Smith25dde972016-03-20 10:37:12625 <td class="full" align="center">Clang 3.8</td>
Richard Smith894835f2015-11-05 21:41:06626 </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 Smith25dde972016-03-20 10:37:12630 <td class="full" align="center">Clang 3.8</td>
Richard Smith894835f2015-11-05 21:41:06631 </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 Schoutenf59d8df2017-03-16 14:21:00635 <td class="full" align="center">Clang 4</td>
Richard Smith894835f2015-11-05 21:41:06636 </tr>
637 <tr>
Richard Smith4a0cd892015-11-26 02:16:37638 <td><tt>__has_include</tt> in preprocessor conditionals</td>
Richard Smith894835f2015-11-05 21:41:06639 <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 Smithf006a962016-03-04 21:01:14642 <!-- Jacksonville papers -->
643 <tr>
644 <td><tt>[[fallthrough]]</tt> attribute</td>
645 <td><a href="http://wg21.link/p0188r1">P0188R1</a></td>
Richard Smithb1a268a2016-08-15 02:47:23646 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14647 </tr>
648 <tr>
649 <td><tt>[[nodiscard]]</tt> attribute</td>
650 <td><a href="http://wg21.link/p0189r1">P0189R1</a></td>
Richard Smithb1a268a2016-08-15 02:47:23651 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14652 </tr>
653 <tr>
654 <td><tt>[[maybe_unused]]</tt> attribute</td>
655 <td><a href="http://wg21.link/p0212r1">P0212R1</a></td>
Richard Smithb1a268a2016-08-15 02:47:23656 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14657 </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 Smithb1a268a2016-08-15 02:47:23661 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14662 </tr>
663 <tr>
664 <td><tt>constexpr</tt> lambda expressions</td>
665 <td><a href="http://wg21.link/p0170r1">P0170R1</a></td>
Richard Smith4b82f9c2017-09-09 01:11:04666 <td class="full" align="center">Clang 5</td>
Richard Smithf006a962016-03-04 21:01:14667 </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 Smithb1a268a2016-08-15 02:47:23671 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14672 </tr>
673 <tr>
674 <td>Lambda capture of <tt>*this</tt></td>
675 <td><a href="http://wg21.link/p0018r3">P0018R3</a></td>
Richard Smithb1a268a2016-08-15 02:47:23676 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14677 </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 Smithb1a268a2016-08-15 02:47:23681 <td class="full" align="center">Clang 3.9</td>
Richard Smithf006a962016-03-04 21:01:14682 </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 Smithb130fe72016-06-23 19:16:49688 <!-- Oulu papers -->
Richard Smith74f56e72016-06-24 11:20:31689 <tr>
690 <td>Using attribute namespaces without repetition</td>
691 <td><a href="http://wg21.link/p0028r4">P0028R4</a></td>
Richard Smithb1a268a2016-08-15 02:47:23692 <td class="full" align="center">Clang 3.9</td>
Richard Smith74f56e72016-06-24 11:20:31693 </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 Schoutenf59d8df2017-03-16 14:21:00697 <td class="full" align="center">Clang 4</td>
Richard Smith74f56e72016-06-24 11:20:31698 </tr>
699 <tr>
Richard Smitha14f3202018-03-17 14:28:47700 <td rowspan="3">Template argument deduction for class templates</td>
Richard Smith74f56e72016-06-24 11:20:31701 <td><a href="http://wg21.link/p0091r3">P0091R3</a></td>
Richard Smith4b82f9c2017-09-09 01:11:04702 <td rowspan="2" class="full" align="center">Clang 5</td>
Richard Smith74f56e72016-06-24 11:20:31703 </tr>
Richard Smith19a311a2017-02-09 22:47:51704 <tr> <!-- from Issaquah -->
705 <td><a href="http://wg21.link/p0512r0">P0512R0</a></td>
Richard Smith19a311a2017-02-09 22:47:51706 </tr>
Richard Smitha14f3202018-03-17 14:28:47707 <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 Smith74f56e72016-06-24 11:20:31712 <tr>
Richard Smith3a2dc6f02016-06-24 12:21:30713 <td>Non-type template parameters with <tt>auto</tt> type</td>
Richard Smith74f56e72016-06-24 11:20:31714 <td><a href="http://wg21.link/p0127r2">P0127R2</a></td>
Ed Schoutenf59d8df2017-03-16 14:21:00715 <td class="full" align="center">Clang 4</td>
Richard Smith74f56e72016-06-24 11:20:31716 </tr>
717 <tr>
718 <td>Guaranteed copy elision</td>
719 <td><a href="http://wg21.link/p0135r1">P0135R1</a></td>
Ed Schoutenf59d8df2017-03-16 14:21:00720 <td class="full" align="center">Clang 4</td>
Richard Smith74f56e72016-06-24 11:20:31721 </tr>
722 <tr>
Richard Smith63497c62016-07-14 00:14:59723 <td rowspan=2>Stricter expression evaluation order</td>
Richard Smith74f56e72016-06-24 11:20:31724 <td><a href="http://wg21.link/p0145r3">P0145R3</a></td>
Richard Smitha14f3202018-03-17 14:28:47725 <td class="full" align="center" rowspan=2>Clang 4 <a href="#p0145">(9)</a></td>
Richard Smith63497c62016-07-14 00:14:59726 </tr>
727 <tr>
728 <td><a href="http://wg21.link/p0400r0">P0400R0</a></td>
Richard Smith74f56e72016-06-24 11:20:31729 </tr>
730 <tr>
Richard Smith74f56e72016-06-24 11:20:31731 <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 Smithb130fe72016-06-23 19:16:49735 <tr>
736 <td><tt>constexpr</tt> <em>if-statement</em>s</td>
737 <td><a href="http://wg21.link/p0292r2">P0292R2</a></td>
Richard Smithb1a268a2016-08-15 02:47:23738 <td class="full" align="center">Clang 3.9</td>
Richard Smithb130fe72016-06-23 19:16:49739 </tr>
Richard Smith74f56e72016-06-24 11:20:31740 <tr>
741 <td>Inline variables</td>
742 <td><a href="http://wg21.link/p0386r2">P0386R2</a></td>
Richard Smithb1a268a2016-08-15 02:47:23743 <td class="full" align="center">Clang 3.9</td>
Richard Smith74f56e72016-06-24 11:20:31744 </tr>
745 <tr>
Richard Smitha14f3202018-03-17 14:28:47746 <td rowspan="3">Structured bindings</td>
Richard Smith74f56e72016-06-24 11:20:31747 <td><a href="http://wg21.link/p0217r3">P0217R3</a></td>
Ed Schoutenf59d8df2017-03-16 14:21:00748 <td class="full" align="center">Clang 4</td>
Richard Smith74f56e72016-06-24 11:20:31749 </tr>
Richard Smitha14f3202018-03-17 14:28:47750 <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 Smith74f56e72016-06-24 11:20:31760 <tr>
Richard Smith90ea9eb2016-06-24 14:23:32761 <td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td>
Richard Smith74f56e72016-06-24 11:20:31762 <td><a href="http://wg21.link/p0305r1">P0305R1</a></td>
Richard Smithb1a268a2016-08-15 02:47:23763 <td class="full" align="center">Clang 3.9</td>
Richard Smith74f56e72016-06-24 11:20:31764 </tr>
Richard Smith5a20d7e2016-11-11 22:48:43765 <!-- Issaquah 2016 papers -->
Richard Smith5a20d7e2016-11-11 22:48:43766 <tr>
767 <td>Matching template template parameters to compatible arguments</td>
768 <td><a href="http://wg21.link/p0522r0">P0522R0</a></td>
Richard Smitha14f3202018-03-17 14:28:47769 <td class="partial" align="center">Partial <a href="#p0522">(10)</a></td>
Richard Smith5a20d7e2016-11-11 22:48:43770 </tr>
771 <tr>
772 <td>Removing deprecated dynamic exception specifications</td>
773 <td><a href="http://wg21.link/p0003r5">P0003R5</a></td>
Ed Schoutenf59d8df2017-03-16 14:21:00774 <td class="full" align="center">Clang 4</td>
Richard Smith5a20d7e2016-11-11 22:48:43775 </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 Schoutenf59d8df2017-03-16 14:21:00779 <td class="full" align="center">Clang 4</td>
Richard Smith5a20d7e2016-11-11 22:48:43780 </tr>
Richard Smithcf31c6b2014-06-20 20:33:10781</table>
Richard Smith76b9f232013-11-07 06:41:26782
Richard Smith42b10572015-11-11 01:36:17783<p>
Richard Smith952923b2016-02-09 22:48:14784<span id="n3922">(8): This is a backwards-incompatible change that is applied to
Richard Smith42b10572015-11-11 01:36:17785all language versions that allow type deduction from <tt>auto</tt>
786(per the request of the C++ committee).
787In Clang 3.7, a warning is emitted for all cases that would change meaning.
Richard Smith4a93c592016-06-28 20:37:43788</span><br>
Richard Smitha14f3202018-03-17 14:28:47789<span id="p0145">(9): Under the MS ABI, function parameters are destroyed from
Richard Smitha560ccf2016-09-29 21:30:12790left to right in the callee. As a result, function parameters in calls to
Richard Smith762672a2016-09-28 19:09:10791<tt>operator&lt;&lt;</tt>, <tt>operator&gt;&gt;</tt>, <tt>operator-&gt;*</tt>,
792<tt>operator&amp;&amp;</tt>, <tt>operator||</tt>, and <tt>operator,</tt>
Richard Smitha560ccf2016-09-29 21:30:12793functions using expression syntax are no longer guaranteed to be destroyed in
794reverse construction order in that ABI.
Richard Smithe0c75002016-11-11 23:46:25795</span><br>
Richard Smitha14f3202018-03-17 14:28:47796<span id="p0522">(10): Despite being the resolution to a Defect Report, this
Richard Smith26b86ea2016-12-31 21:41:23797feature is disabled by default in all language versions, and can be enabled
Richard Smithe0c11f22017-11-30 23:07:29798explicitly with the flag <tt>-frelaxed-template-template-args</tt> in Clang 4
799onwards.
Richard Smithd7279bb2017-01-13 00:57:54800The change to the standard lacks a corresponding change for template partial
801ordering, resulting in ambiguity errors for reasonable and previously-valid
802code. This issue is expected to be rectified soon.
Richard Smith5179eb72016-06-28 19:03:57803</span>
Richard Smith42b10572015-11-11 01:36:17804</p>
Richard Smithe2bf8782016-09-28 21:01:37805</details>
Richard Smith42b10572015-11-11 01:36:17806
Richard Smithda62f422017-07-15 15:42:36807<h2 id="cxx20">C++2a implementation status</h2>
808
Faisal Vali8194a3e2017-08-19 03:43:07809<p>Clang has <b>experimental</b> support for some proposed features of
Richard Smithda62f422017-07-15 15:42:36810the C++ standard following C++17, provisionally named C++2a.
811Note that support for these features may change or be removed without notice,
812as the draft C++2a standard evolves.
813
Faisal Vali8194a3e2017-08-19 03:43:07814<p>You can use Clang in C++2a mode with the <code>-std=c++2a</code> option.</p>
Richard Smithda62f422017-07-15 15:42:36815
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 Smith21a10192017-07-15 15:51:59828 <td><a href="http://wg21.link/p0683r1">P0683R1</a></td>
Richard Smithc1a40222018-02-28 03:02:07829 <td class="svn" align="center">Clang 6</td>
Richard Smithda62f422017-07-15 15:42:36830 </tr>
831 <tr>
832 <td><tt>const&amp;</tt>-qualified pointers to members</td>
833 <td><a href="http://wg21.link/p0704r1">P0704R1</a></td>
Richard Smithc1a40222018-02-28 03:02:07834 <td class="svn" align="center">Clang 6</td>
Richard Smithda62f422017-07-15 15:42:36835 </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 Smithc1a40222018-02-28 03:02:07839 <td class="svn" align="center">Clang 6</td>
Richard Smithda62f422017-07-15 15:42:36840 </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 Smithc1a40222018-02-28 03:02:07844 <td class="svn" align="center">Clang 6</td>
Richard Smithda62f422017-07-15 15:42:36845 </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 Smith137f6572017-11-11 17:54:46856 <tr id="p0734">
857 <td rowspan="2">Concepts</td>
Richard Smithda62f422017-07-15 15:42:36858 <td><a href="http://wg21.link/p0734r0">P0734R0</a></td>
Richard Smith137f6572017-11-11 17:54:46859 <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 Smith137f6572017-11-11 17:54:46871 <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 Smitha14f3202018-03-17 14:28:47881 <td rowspan="2">Consistent comparison (<tt>operator&lt;=&gt;</tt>)</td>
Richard Smith137f6572017-11-11 17:54:46882 <td><a href="http://wg21.link/p0515r3">P0515R3</a></td>
Richard Smitha14f3202018-03-17 14:28:47883 <td rowspan="2" class="none" align="center">No</td>
Richard Smith137f6572017-11-11 17:54:46884 </tr>
Richard Smitha14f3202018-03-17 14:28:47885 <tr> <!-- from Jacksonville -->
886 <td><a href="http://wg21.link/p0905r1">P0905R1</a></td>
887 </tr>
Richard Smith137f6572017-11-11 17:54:46888 <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 Smithda62f422017-07-15 15:42:36901 <td class="none" align="center">No</td>
902 </tr>
Richard Smitha14f3202018-03-17 14:28:47903 <!-- 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 Smithda62f422017-07-15 15:42:36924</table>
925</details>
926
Richard Smitha14f3202018-03-17 14:28:47927<h2 id="dr">Defect reports</h2>
928
929<p>Clang generally aims to implement resolutions to Defect Reports (bug fixes
930against prior standards) retroactively, in all prior standard versions where
931the fix is meaningful. Significant Defect Report changes to language features
932after the publication of the relevant standard are marked (DR) in the above
933table.</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>,
937most of which are considered Defect Reports.
938<a href="cxx_dr_status.html">Implementation status for C++ core issues</a> based on
939that test suite is tracked on a separate page.</p>
Richard Smith1363e8f2017-09-07 07:22:36940
Richard Smith91e474f2013-11-27 22:58:16941<h2 id="ts">Technical specifications and standing documents</h2>
942
943<p>ISO C++ also publishes a number of documents describing additional language
Richard Smithe2bf8782016-09-28 21:01:37944and 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 Smith91e474f2013-11-27 22:58:16948
949<table width="689" border="1" cellspacing="0">
950 <tr>
951 <th>Document</th>
952 <th>Latest draft</th>
Richard Smithe2bf8782016-09-28 21:01:37953 <th>Compiler flag</th>
Richard Smith91e474f2013-11-27 22:58:16954 <th>Available in Clang?</th>
955 </tr>
956 <tr>
Richard Smith9d07ae72017-08-11 03:39:40957 <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 Smith38af8562014-11-12 21:16:38960 <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 Smith42b10572015-11-11 01:36:17965 <td class="full" align="center">
Benjamin Kramereb0ad452015-02-09 11:48:43966 Clang 3.6 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4200">N4200</a>)</a>
Richard Smith38af8562014-11-12 21:16:38967 </td>
Richard Smith91e474f2013-11-27 22:58:16968 </tr>
Richard Smithb02043c2016-09-28 19:44:50969 <tr>
Richard Smithd7279bb2017-01-13 00:57:54970 <td class="full" align="center">
971 Clang 4 (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a>
Richard Smithb02043c2016-09-28 19:44:50972 </td>
973 </tr>
Richard Smith9d07ae72017-08-11 03:39:40974 <tr>
Richard Smith4b82f9c2017-09-09 01:11:04975 <td class="full" align="center">
Richard Smith9d07ae72017-08-11 03:39:40976 Clang 5 (<a href="http://wg21.link/p0096r4">P0096R4</a>)</a>
977 </td>
978 </tr>
Richard Smith894835f2015-11-05 21:41:06979 <!-- FIXME: Implement latest recommendations.
Richard Smith91e474f2013-11-27 22:58:16980 <tr>
Richard Smith894835f2015-11-05 21:41:06981 <td class="svn" align="center">
Richard Smithb02043c2016-09-28 19:44:50982 SVN (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a>
Richard Smith894835f2015-11-05 21:41:06983 </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 Smithe2bf8782016-09-28 21:01:37996 <td></td>
Richard Smith137f6572017-11-11 17:54:46997 <td class="na" align="center">Superseded by <a href="#p0734">P0734R0</a></td>
Richard Smithe2bf8782016-09-28 21:01:37998 </tr>
999 <tr>
Richard Smitha14f3202018-03-17 14:28:471000 <!-- track unimplemented Coroutines features: p0913r1 p0914r1 -->
Richard Smithe2bf8782016-09-28 21:01:371001 <td>[DRAFT TS] Coroutines</td>
Gor Nishanovb5543e5b322017-05-27 22:54:521002 <td><a href="https://isocpp.org/files/papers/N4663.pdf">N4663</a></td>
Richard Smith29c5f162017-07-06 00:29:131003 <td><tt>-fcoroutines-ts<br>-stdlib=libc++</tt></td>
Richard Smith4b82f9c2017-09-09 01:11:041004 <td class="full" align="center">Clang 5</td>
Richard Smith91e474f2013-11-27 22:58:161005 </tr>
Richard Smith3a0ed872014-02-15 00:29:001006 <tr>
Richard Smith894835f2015-11-05 21:41:061007 <td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td>
Richard Smithea260412015-11-05 22:21:521008 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html">N4480</a></td>
Richard Smithe2bf8782016-09-28 21:01:371009 <td>N/A</td>
Richard Smith3a0ed872014-02-15 00:29:001010 <td class="none" align="center">No</td>
1011 </tr>
1012 <tr>
Richard Smith894835f2015-11-05 21:41:061013 <td>[DRAFT TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td>
Richard Smithe2bf8782016-09-28 21:01:371014 <td><a href="http://wg21.link/n4600">N4600</a></td>
1015 <td>N/A</td>
Richard Smith894835f2015-11-05 21:41:061016 <td class="none" align="center">No</td>
1017 </tr>
1018 <tr>
Richard Smithe2bf8782016-09-28 21:01:371019 <td>[DRAFT TS] Modules</td>
Richard Smith29c5f162017-07-06 00:29:131020 <td><a href="http://wg21.link/n4667">N4667</a></td>
Richard Smithe2bf8782016-09-28 21:01:371021 <td><tt>-fmodules-ts</tt></td>
1022 <td class="none" align="center">WIP</td>
Richard Smithf006a962016-03-04 21:01:141023 </tr>
Richard Smitha14f3202018-03-17 14:28:471024 <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 Smithf006a962016-03-04 21:01:141030 <tr>
Richard Smith894835f2015-11-05 21:41:061031 <td>[TS] Transactional Memory</td>
Richard Smith85864d52015-11-26 02:23:211032 <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4514.pdf">N4514</a></td>
Richard Smithe2bf8782016-09-28 21:01:371033 <td></td>
Richard Smith3a0ed872014-02-15 00:29:001034 <td class="none" align="center">No</td>
1035 </tr>
Richard Smith91e474f2013-11-27 22:58:161036</table>
Richard Smithe2bf8782016-09-28 21:01:371037</details>
Richard Smith91e474f2013-11-27 22:58:161038
Cedric Venet084381332009-02-14 20:20:191039</div>
1040</body>
1041</html>