xref: /llvm-project/clang/www/cxx_status.html (revision 8a334af417ff2ef49e0bc74f9421b4f3aa479805)
1<!DOCTYPE html>
2<html>
3<head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5  <title>Clang - C++ Programming Language Status</title>
6  <link type="text/css" rel="stylesheet" href="menu.css">
7  <link type="text/css" rel="stylesheet" href="content.css">
8  <style type="text/css">
9    .none { background-color: #FFCCCC }
10    .partial { background-color: #FFE0B0 }
11    .unreleased { background-color: #FFFF99 }
12    .full { background-color: #CCFF99 }
13    .na { background-color: #DDDDDD }
14    :target { background-color: #FFFFBB; outline: #DDDD55 solid thin; }
15    th { background-color: #FFDDAA }
16    td { vertical-align: middle }
17    tt { white-space: nowrap }
18  </style>
19</head>
20<body>
21
22<!--#include virtual="menu.html.incl"-->
23
24<div id="content">
25
26<!--*************************************************************************-->
27<h1>C++ Support in Clang</h1>
28<!--*************************************************************************-->
29
30<p>Clang implements the following published and upcoming ISO C++ standards:</p>
31
32<table width="689" border="1" cellspacing="0">
33 <tr>
34  <th>Language Standard</th>
35  <th>Flag</th>
36  <th>Available in Clang?</th>
37 </tr>
38 <tr>
39  <td><a href="#cxx26">C++2c</a></td>
40  <td><tt>-std=c++2c</tt></td>
41  <td class="partial" align="center">Partial</td>
42 </tr>
43<tr>
44  <td><a href="#cxx23">C++23</a></td>
45  <td><tt>-std=c++23</tt></td>
46  <td class="partial" align="center">Partial</td>
47 </tr>
48 <tr>
49  <td><a href="#cxx20">C++20</a></td>
50  <td><tt>-std=c++20</tt></td>
51  <td class="partial" align="center">Partial</td>
52 </tr>
53 <tr>
54  <td><a href="#cxx17">C++17</a></td>
55  <td><tt>-std=c++17</tt></td>
56  <td class="full" align="center">Clang 5</td>
57 </tr>
58 <tr>
59  <td><a href="#cxx14">C++14</a></td>
60  <td><tt>-std=c++14</tt></td>
61  <td class="full" align="center">Clang 3.4</td>
62 </tr>
63 <tr>
64  <td><a href="#cxx11">C++11</a></td>
65  <td><tt>-std=c++11</tt></td>
66  <td class="full" align="center">Clang 3.3</td>
67 </tr>
68 <tr>
69  <td><a href="#cxx98">C++98 / C++03</a></td>
70  <td><tt>-std=c++98</tt></td>
71  <td class="full" align="center">Yes (other than <tt>export</tt>)</td>
72</tr>
73</table>
74
75<p>The Clang community is continually striving to improve C++ standards
76compliance between releases by submitting and tracking <a
77href="cxx_dr_status.html">C++ Defect Reports</a> and implementing resolutions
78as they become available.</p>
79
80<p>Experimental work is also under way to implement <a href="#ts">C++ Technical
81Specifications</a> that will help drive the future of the C++ programming
82language.</p>
83
84<p>The <a href="https://github.com/llvm/llvm-project/issues/">LLVM bug tracker</a> uses
85the "c++" label, as well as mode-specific labels such as "c++11", "c++14",
86and so on, to track known bugs with Clang's language conformance.</p>
87
88<h2 id="cxx26">C++2c implementation status</h2>
89
90<!-- TODO add link to the ISO Standard after it's published. -->
91<p>Clang has support for some of the features of the C++ standard following
92C++23, informally referred to as C++26.</p>
93
94<p>You can use Clang in C++2c mode with the <code>-std=c++2c</code> option.</p>
95
96<details open>
97<summary>List of features and minimum Clang version with support</summary>
98<table width="689" border="1" cellspacing="0">
99 <tr>
100    <th>Language Feature</th>
101    <th>C++26 Proposal</th>
102    <th>Available in Clang?</th>
103 </tr>
104 <!-- Spring 2023 papers (Varna) -->
105 <tr>
106  <td>Remove undefined behavior from lexing</td>
107  <td><a href="https://wg21.link/P2621R2">P2621R2</a> (<a href="#dr">DR</a>)</td>
108  <td class="full" align="center">Clang 3.3</td>
109 </tr>
110 <tr>
111  <td>Making non-encodable string literals ill-formed</td>
112  <td><a href="https://wg21.link/P1854R4">P1854R4</a> (<a href="#dr">DR</a>)</td>
113  <td class="full" align="center">Clang 14</td>
114 </tr>
115 <tr>
116  <td>Unevaluated strings</td>
117  <td><a href="https://wg21.link/P2361R6">P2361R6</a></td>
118  <td class="full" align="center">Clang 18</td>
119 </tr>
120 <tr>
121  <td>Add @, $, and ` to the basic character set</td>
122  <td><a href="https://wg21.link/P2558R2">P2558R2</a></td>
123  <td class="full" align="center">Yes</td>
124 </tr>
125 <tr>
126  <td>constexpr cast from <tt>void*</tt></td>
127  <td><a href="https://wg21.link/P2738R1">P2738R1</a></td>
128  <td class="full" align="center">Clang 17</td>
129 </tr>
130 <tr>
131  <td>On the ignorability of standard attributes</td>
132  <td><a href="https://wg21.link/P2552R3">P2552R3</a> (<a href="#dr">DR</a>)</td>
133  <td class="full" align="center">Yes</td>
134 </tr>
135 <tr>
136  <td>Static storage for braced initializers</td>
137  <td><a href="https://wg21.link/P2752R3">P2752R3</a> (<a href="#dr">DR</a>)</td>
138  <td class="none" align="center">No</td>
139 </tr>
140 <tr>
141  <td>User-generated <tt>static_assert</tt> messages</td>
142  <td><a href="https://wg21.link/P2741R3">P2741R3</a></td>
143  <td class="full" align="center">Clang 17</td>
144 </tr>
145 <tr>
146  <td>Placeholder variables with no name</td>
147  <td><a href="https://wg21.link/P2169R4">P2169R4</a></td>
148  <td class="full" align="center">Clang 18</td>
149 </tr>
150 <!-- Fall 2023 papers (Kona) -->
151 <tr>
152  <td>Template parameter initialization</td>
153  <td><a href="https://wg21.link/P2308R1">P2308R1</a> (<a href="#dr">DR</a>)</td>
154  <td class="full" align="center">Clang 18</td>
155 </tr>
156 <tr>
157  <td>Pack Indexing</td>
158  <td><a href="https://wg21.link/P2662R3">P2662R3</a></td>
159  <td class="full" align="center">Clang 19</td>
160 </tr>
161 <tr>
162  <td>Remove Deprecated Arithmetic Conversion on Enumerations</td>
163  <td><a href="https://wg21.link/P2864R2">P2864R2</a></td>
164  <td class="full" align="center">Clang 18</td>
165 </tr>
166 <!-- Winter 2024 papers (Tokyo) -->
167 <tr>
168  <td>Disallow Binding a Returned Glvalue to a Temporary</td>
169  <td><a href="https://wg21.link/P2748R5">P2748R5</a></td>
170  <td class="full" align="center">Clang 19</td>
171 </tr>
172 <tr>
173  <td>Clarifying rules for brace elision in aggregate initialization</td>
174  <td><a href="https://wg21.link/P3106R1">P3106R1</a> (<a href="#dr">DR</a>)</td>
175  <td class="full" align="center">Clang 17</td>
176 </tr>
177 <tr>
178  <td>Attributes for Structured Bindings</td>
179  <td><a href="https://wg21.link/P0609R3">P0609R3</a></td>
180  <td class="full" align="center">Clang 19</td>
181 </tr>
182 <tr>
183  <td>Module Declarations Shouldn’t be Macros</td>
184  <td><a href="https://wg21.link/P3034R1">P3034R1</a> (<a href="#dr">DR</a>)</td>
185  <td class="none" align="center">No</td>
186 </tr>
187 <tr>
188  <td>Trivial infinite loops are not Undefined Behavior</td>
189  <td><a href="https://wg21.link/P2809R3">P2809R3</a> (<a href="#dr">DR</a>)</td>
190  <td class="full" align="center">Clang 19</td>
191 </tr>
192 <tr>
193  <td>Erroneous behaviour for uninitialized reads</td>
194  <td><a href="https://wg21.link/P2795R5">P2795R5</a></td>
195  <td class="none" align="center">No</td>
196 </tr>
197 <tr>
198  <td><tt>= delete("should have a reason");</tt></td>
199  <td><a href="https://wg21.link/P2573R2">P2573R2</a></td>
200  <td class="full" align="center">Clang 19</td>
201 </tr>
202 <tr>
203  <td>Variadic friends</td>
204  <td><a href="https://wg21.link/P2893R3">P2893R3</a></td>
205  <td class="unreleased" align="center">Clang 20</td>
206 </tr>
207 <!-- Summer 2024 papers (St Louis) -->
208 <tr>
209  <td><tt>constexpr</tt> placement new</td>
210  <td><a href="https://wg21.link/P2747R2">P2747R2</a></td>
211  <td class="unreleased" align="center">Clang 20</td>
212 </tr>
213 <tr>
214  <td>Deleting a Pointer to an Incomplete Type Should be Ill-formed</td>
215  <td><a href="https://wg21.link/P3144">P3144R2</a></td>
216  <td class="full" align="center">Clang 19</td>
217 </tr>
218 <tr>
219  <td>Ordering of constraints involving fold expressions</td>
220  <td><a href="https://wg21.link/P2963R3">P2963R3</a></td>
221  <td class="full" align="center">Clang 19</td>
222 </tr>
223 <tr>
224  <td>Structured binding declaration as a condition</td>
225  <td><a href="https://wg21.link/P0963R3">P0963R3</a></td>
226  <td class="none" align="center">No</td>
227 </tr>
228 <!--Poland, Fall 2024-->
229 <tr>
230  <td>constexpr structured bindings</td>
231  <td><a href="https://wg21.link/P2686R5">P2686R5</a></td>
232  <td class="none" align="center">No</td>
233 </tr>
234 <tr>
235  <td>Allowing exception throwing in constant-evaluation</td>
236  <td><a href="https://wg21.link/P3068R6">P3068R6</a></td>
237  <td class="none" align="center">No</td>
238 </tr>
239 <tr>
240  <td>Remove Deprecated Array Comparisons from C++26</td>
241  <td><a href="https://wg21.link/P2865R6">P2865R6</a></td>
242  <td class="unreleased" align="center">Clang 20</td>
243 </tr>
244 <tr>
245  <td>Structured Bindings can introduce a Pack</td>
246  <td><a href="https://wg21.link/P1061R10">P1061R10</a></td>
247  <td class="none" align="center">No</td>
248 </tr>
249 <tr>
250  <td>The Oxford variadic comma</td>
251  <td><a href="https://wg21.link/P3176R1">P3176R1</a></td>
252  <td class="unreleased" align="center">Clang 20</td>
253 </tr>
254</table>
255</details>
256
257<h2 id="cxx23">C++23 implementation status</h2>
258
259<!-- TODO add link to the ISO Standard after it's published. -->
260<p>Clang has support for some of the features of the ISO C++ 2023 standard.</p>
261
262<p>You can use Clang in C++23 mode with the <code>-std=c++23</code> option.</p>
263
264<details open>
265<summary>List of features and minimum Clang version with support</summary>
266
267<table width="689" border="1" cellspacing="0">
268 <tr>
269    <th>Language Feature</th>
270    <th>C++23 Proposal</th>
271    <th>Available in Clang?</th>
272 </tr>
273    <!-- Fall 2020 papers -->
274    <tr>
275      <td>Literal suffix <tt>uz</tt>, <tt>z</tt> for <tt>size_t</tt>, <tt>ssize_t</tt></td>
276      <td><a href="https://wg21.link/p0330r8">P0330R8</a></td>
277      <td class="full" align="center">Clang 13</td>
278    </tr>
279    <!-- Spring 2021 papers -->
280    <tr>
281      <td>Make <tt>()</tt> in lambdas optional in all cases</td>
282      <td><a href="https://wg21.link/p1102r2">P1102R2</a></td>
283      <td class="full" align="center">Clang 13</td>
284    </tr>
285    <tr>
286      <td>Simpler implicit move</td>
287      <td><a href="https://wg21.link/p2266R3">P2266R3</a></td>
288      <td class="full" align="center">Clang 13</td>
289    </tr>
290    <tr>
291      <td><tt>if consteval</tt></td>
292      <td><a href="https://wg21.link/P1938R3">P1938R3</a></td>
293      <td class="full" align="center">Clang 14</td>
294    </tr>
295    <tr>
296      <td>Allow duplicate attributes</td>
297      <td><a href="https://wg21.link/P2156R1">P2156R1</a> (<a href="#dr">DR</a>)</td>
298      <td class="full" align="center">Clang 13</td>
299    </tr>
300    <tr>
301      <td>Narrowing contextual conversions to bool</td>
302      <td><a href="https://wg21.link/P1401R5">P1401R5</a></td>
303      <td class="full" align="center">Clang 14</td>
304    </tr>
305    <tr>
306      <td>Trimming whitespaces before line splicing</td>
307      <td><a href="https://wg21.link/P2223R2">P2223R2</a></td>
308      <td class="full" align="center">Yes</td>
309    </tr>
310    <tr>
311      <td>Make declaration order layout mandated</td>
312      <td><a href="https://wg21.link/p1847r4">P1874R4</a></td>
313      <td class="full" align="center">Yes</td>
314    </tr>
315    <tr>
316      <td>C++ identifier syntax using UAX 31</td>
317      <td><a href="https://wg21.link/P1949R7">P1949R7</a> (<a href="#dr">DR</a>)</td>
318      <td class="full" align="center">Clang 14</td>
319    </tr>
320    <tr>
321      <td>Mixed string literal concatenation</td>
322      <td><a href="https://wg21.link/p2201r1">P2201R1</a></td>
323      <td class="full" align="center">Yes</td>
324    </tr>
325    <!-- October 2021 papers -->
326    <tr>
327      <td rowspan=2>Deducing this</td>
328      <td><a href="https://wg21.link/P0847R7">P0847R7</a></td>
329      <td class="full" align="center">Clang 18</td>
330    </tr>
331    <tr>
332      <td><a href="https://wg21.link/P2797R0">P2797R0</a></td>
333      <td class="full" align="center">Clang 19</td>
334    </tr>
335    <tr>
336      <td rowspan=2>Change scope of lambda trailing-return-type</td>
337      <td><a href="https://wg21.link/P2036R3">P2036R3</a> (<a href="#dr">DR</a>)</td>
338      <td rowspan=2 class="full" align="center">Clang 17</td>
339    </tr>
340    <tr>
341      <td><a href="https://wg21.link/P2579R0">P2579R0</a> (<a href="#dr">DR</a>)</td>
342    </tr>
343    <tr>
344      <td>Multidimensional subscript operator</td>
345      <td><a href="https://wg21.link/P2128R6">P2128R6</a></td>
346      <td class="full" align="center">Clang 15</td>
347    </tr>
348    <tr>
349      <td>Non-literal variables (and labels and gotos) in constexpr functions</td>
350      <td><a href="https://wg21.link/P2242R3">P2242R3</a></td>
351      <td class="full" align="center">Clang 15</td>
352    </tr>
353    <tr>
354      <td>Character encoding of diagnostic text</td>
355      <td><a href="https://wg21.link/P2246R1">P2246R1</a></td>
356      <td class="full" align="center">Yes</td>
357    </tr>
358    <tr>
359      <td>Character sets and encodings</td>
360      <td><a href="https://wg21.link/P2314R4">P2314R4</a></td>
361      <td class="full" align="center">Yes</td>
362    </tr>
363    <tr>
364      <td>Consistent character literal encoding</td>
365      <td><a href="https://wg21.link/P2316R2">P2316R2</a></td>
366      <td class="full" align="center">Yes</td>
367    </tr>
368    <tr>
369      <td>Add support for preprocessing directives elifdef and elifndef</td>
370      <td><a href="https://wg21.link/P2334R1">P2334R1</a></td>
371      <td class="full" align="center">Clang 13</td>
372    </tr>
373    <tr>
374      <td>Extend init-statement to allow alias-declaration</td>
375      <td><a href="https://wg21.link/P2360R0">P2360R0</a></td>
376      <td class="full" align="center">Clang 14</td>
377    </tr>
378    <tr>
379      <td>auto(x): decay-copy in the language</td>
380      <td><a href="https://wg21.link/P0849R8">P0849R8</a></td>
381      <td class="full" align="center">Clang 15</td>
382    </tr>
383    <!-- February 2022 papers -->
384    <tr>
385      <td>Attributes on Lambda-Expressions</td>
386      <td><a href="https://wg21.link/P2173R1">P2173R1</a></td>
387      <td class="full" align="center">Clang 13</td>
388    </tr>
389    <tr>
390      <td><tt>constexpr</tt> for <tt>&lt;cmath&gt;</tt> and <tt>&lt;cstdlib&gt;</tt></td>
391      <td><a href="https://wg21.link/P0533R9">P0533R9</a></td>
392      <td class="none" align="center">No</td>
393    </tr>
394    <tr>
395      <td>Type trait to determine if a reference binds to a temporary</td>
396      <td><a href="https://wg21.link/P2255R2">P2255R2</a></td>
397      <td class="full" align="center">Clang 19</td>
398    </tr>
399    <!-- July 2022 papers -->
400    <tr>
401      <td>The Equality Operator You Are Looking For</td>
402      <td><a href="https://wg21.link/P2468R2">P2468R2</a> (<a href="#dr">DR</a>)</td>
403      <td class="full" align="center">Clang 16</td>
404    </tr>
405    <tr>
406      <td>De-deprecating volatile compound operations</td>
407      <td><a href="https://wg21.link/P2327R1">P2327R1</a> (<a href="#dr">DR</a>)</td>
408      <td class="full" align="center">Clang 15</td>
409    </tr>
410    <tr>
411      <td>Support for <code>#warning</code></td>
412      <td><a href="https://wg21.link/P2437R1">P2437R1</a></td>
413      <td class="full" align="center">Yes</td>
414    </tr>
415    <tr>
416      <td>Remove non-encodable wide character literals and multicharacter wide character literals</td>
417      <td><a href="https://wg21.link/P2362R3">P2362R3</a></td>
418      <td class="full" align="center">Clang 14</td>
419    </tr>
420    <tr>
421      <td>Labels at the end of compound statements</td>
422      <td><a href="https://wg21.link/P2324R2">P2324R2</a></td>
423      <td class="full" align="center">Clang 16</td>
424    </tr>
425    <tr>
426      <td>Delimited escape sequences</td>
427      <td><a href="https://wg21.link/P2290R3">P2290R3</a></td>
428      <td class="full" align="center">Clang 15</td>
429    </tr>
430    <tr>
431      <td>Named universal character escapes</td>
432      <td><a href="https://wg21.link/P2071R2">P2071R2</a></td>
433      <td class="full" align="center">Clang 15</td>
434    </tr>
435    <tr>
436      <td>Relaxing some constexpr restrictions</td>
437      <td><a href="https://wg21.link/P2448R2">P2448R2</a></td>
438      <td class="full" align="center">Clang 19</td>
439    </tr>
440    <tr>
441      <td>Using unknown pointers and references in constant expressions</td>
442      <td><a href="https://wg21.link/P2280R4">P2280R4</a></td>
443      <td class="unreleased" align="center">Clang 20</td>
444    </tr>
445    <tr>
446      <td>static <code>operator()</code></td>
447      <td><a href="https://wg21.link/P1169R4">P1169R4</a></td>
448      <td class="full" align="center">Clang 16</td>
449    </tr>
450    <tr>
451      <td>Extended floating-point types and standard names</td>
452      <td><a href="https://wg21.link/P1467R9">P1467R9</a></td>
453      <td class="none" align="center">No</td>
454    </tr>
455    <tr>
456      <td>Class template argument deduction from inherited constructors</td>
457      <td><a href="https://wg21.link/P2582R1">P2582R1</a></td>
458      <td class="none" align="center">No</td>
459    </tr>
460    <tr>
461      <td>Portable assumptions</td>
462      <td><a href="https://wg21.link/P1774R8">P1774R8</a></td>
463      <td class="full" align="center">Clang 19</td>
464    </tr>
465    <tr>
466      <td>Support for UTF-8 as a portable source file encoding</td>
467      <td><a href="https://wg21.link/P2295R6">P2295R6</a></td>
468      <td class="full" align="center">Clang 15</td>
469    </tr>
470    <tr>
471      <td><code>char8_t</code> Compatibility and Portability Fix</td>
472      <td><a href="https://wg21.link/P2513R3">P2513R3</a> (<a href="#dr">DR</a>)</td>
473      <td class="full" align="center">Clang 16</td>
474    </tr>
475    <tr>
476      <td>Relax requirements on <code>wchar_t</code> to match existing practices</td>
477      <td><a href="https://wg21.link/P2460R2">P2460R2</a> (<a href="#dr">DR</a>)</td>
478      <td class="full" align="center">Yes</td>
479    </tr>
480    <tr>
481      <td>Explicit lifetime management</td>
482      <td><a href="https://wg21.link/P2590R2">P2590R2</a></td>
483      <td class="none" align="center">No</td>
484    </tr>
485    <!-- November 2022 (Kona) papers -->
486    <tr>
487      <td>static <code>operator[]</code></td>
488      <td><a href="https://wg21.link/P2589R1">P2589R1</a></td>
489      <td class="full" align="center">Clang 16</td>
490    </tr>
491    <tr>
492      <td>Permitting static constexpr variables in constexpr functions</td>
493      <td><a href="https://wg21.link/P2647R1">P2647R1</a></td>
494      <td class="full" align="center">Clang 16</td>
495    </tr>
496    <tr>
497      <td>consteval needs to propagate up</td>
498      <td><a href="https://wg21.link/P2564R3">P2564R3</a> (<a href="#dr">DR</a>)</td>
499      <td class="full" align="center">Clang 17</td>
500    </tr>
501    <tr>
502      <td>Lifetime extension in range-based for loops</td>
503      <td><a href="https://wg21.link/P2718R0">P2718R0</a></td>
504      <td class="full" align="center">Clang 20</td>
505    </tr>
506    <!--Issaquah 2023 papers-->
507    <tr>
508      <td>Referencing The Unicode Standard</td>
509      <td><a href="https://wg21.link/P2736R2">P2736R2</a></td>
510      <td class="full" align="center">Yes</td>
511    </tr>
512</table>
513</details>
514
515
516<h2 id="cxx20">C++20 implementation status</h2>
517
518<p>Clang has support for some of the features of the
519<a href="https://www.iso.org/standard/79358.html">ISO C++ 2020 standard</a>.</p>
520
521<p>You can use Clang in C++20 mode with the <code>-std=c++20</code> option
522(use <code>-std=c++2a</code> in Clang 9 and earlier).</p>
523
524<details open>
525<summary>List of features and minimum Clang version with support</summary>
526
527<table width="689" border="1" cellspacing="0">
528 <tr>
529    <th>Language Feature</th>
530    <th>C++20 Proposal</th>
531    <th>Available in Clang?</th>
532 </tr>
533    <!-- Toronto 2017 papers -->
534    <tr>
535      <td>Default member initializers for bit-fields</td>
536      <td><a href="https://wg21.link/p0683r1">P0683R1</a></td>
537      <td class="full" align="center">Clang 6</td>
538    </tr>
539    <tr>
540      <td><tt>const&amp;</tt>-qualified pointers to members</td>
541      <td><a href="https://wg21.link/p0704r1">P0704R1</a></td>
542      <td class="full" align="center">Clang 6</td>
543    </tr>
544    <tr>
545      <td>Allow <i>lambda-capture</i> <tt>[=, this]</tt></td>
546      <td><a href="https://wg21.link/p0409r2">P0409R2</a></td>
547      <td class="full" align="center">Clang 6</td>
548    </tr>
549    <tr>
550      <td rowspan="2"><tt>__VA_OPT__</tt> for preprocessor comma elision</td>
551      <td><a href="https://wg21.link/p0306r4">P0306R4</a></td>
552      <td class="full" align="center">Clang 6</td>
553    </tr>
554      <tr> <!-- from Rapperswil -->
555        <td><a href="https://wg21.link/p1042r1">P1042R1</a></td>
556        <td class="full" align="center">Clang 9</td>
557      </tr>
558    <tr>
559      <td>Designated initializers</td>
560      <td><a href="https://wg21.link/p0329r4">P0329R4</a></td>
561      <td class="full" align="center">Clang 10</td>
562    </tr>
563    <tr>
564      <td><i>template-parameter-list</i> for generic lambdas</td>
565      <td><a href="https://wg21.link/p0428r2">P0428R2</a></td>
566      <td class="full" align="center">Clang 9</td>
567    </tr>
568    <tr id="p0734">
569      <td rowspan="13">Concepts</td>
570      <td><a href="https://wg21.link/p0734r0">P0734R0</a></td>
571      <td class="full" align="center">Clang 10</td>
572    </tr>
573      <tr> <!-- from Albuquerque -->
574        <td><a href="https://wg21.link/p0857r0">P0857R0</a></td>
575        <td rowspan="1" class="full" align="center">Clang 16</td>
576      </tr>
577      <tr> <!-- from San Diego -->
578        <td><a href="https://wg21.link/p1084r2">P1084R2</a></td>
579        <td rowspan="2" class="full" align="center">Clang 10</td>
580      </tr>
581      <tr>
582        <td><a href="https://wg21.link/p1141r2">P1141R2</a></td>
583      </tr>
584      <tr> <!-- from Cologne -->
585        <td><a href="https://wg21.link/p0848r3">P0848R3</a></td>
586        <td rowspan="1" class="full" align="center">Clang 19</td>
587      </tr>
588      <tr>
589        <td><a href="https://wg21.link/p1616r1">P1616R1</a></td>
590        <td rowspan="2" class="full" align="center">Clang 10</td>
591      </tr>
592      <tr>
593        <td><a href="https://wg21.link/p1452r2">P1452R2</a></td>
594      </tr>
595      <tr> <!-- from Belfast -->
596        <td><a href="https://wg21.link/p1972r0">P1972R0</a></td>
597        <td rowspan="4" class="full" align="center">Clang 10</td>
598      </tr>
599      <tr>
600        <td><a href="https://wg21.link/p1980r0">P1980R0</a></td>
601      </tr>
602      <tr> <!-- from Prague -->
603        <td><a href="https://wg21.link/p2103r0">P2103R0</a></td>
604      </tr>
605      <tr> <!-- from February 2022 -->
606        <td><a href="https://wg21.link/p2493r0">P2493R0</a> (<a href="#dr">DR</a>)</td>
607      </tr>
608      <tr>
609        <td><a href="https://wg21.link/p2092r0">P2092R0</a></td>
610        <td rowspan="1" class="full" align="center">Clang 16</td>
611      </tr>
612      <tr>
613        <td><a href="https://wg21.link/p2113r0">P2113R0</a></td>
614        <td rowspan="1" class="full" align="center">Clang 16</td>
615      </tr>
616    <!-- Albuquerque papers -->
617    <tr>
618      <td>Range-based for statements with initializer</td>
619      <td><a href="https://wg21.link/p0614r1">P0614R1</a></td>
620      <td class="full" align="center">Clang 8</td>
621    </tr>
622    <tr>
623      <td>ADL and function templates that are not visible</td>
624      <td><a href="https://wg21.link/p0846r0">P0846R0</a></td>
625      <td class="full" align="center">Clang 9</td>
626    </tr>
627    <tr>
628      <td><tt>const</tt> mismatch with defaulted copy constructor</td>
629      <td><a href="https://wg21.link/p0641r2">P0641R2</a></td>
630      <td class="full" align="center">Clang 8</td>
631    </tr>
632    <tr>
633      <td rowspan="10">Consistent comparison (<tt>operator&lt;=&gt;</tt>)</td>
634      <td><a href="https://wg21.link/p0515r3">P0515R3</a></td>
635      <td rowspan="8" class="full" align="center">Clang 10</td>
636    </tr>
637      <tr> <!-- from Jacksonville -->
638        <td><a href="https://wg21.link/p0905r1">P0905R1</a></td>
639      </tr>
640      <tr> <!-- from Rapperswil -->
641        <td><a href="https://wg21.link/p1120r0">P1120R0</a></td>
642      </tr>
643      <tr> <!-- from Kona 2019 -->
644        <td><a href="https://wg21.link/p1185r2">P1185R2</a></td>
645      </tr>
646      <tr> <!-- from Cologne -->
647        <td><a href="https://wg21.link/p1186r3">P1186R3</a></td>
648      </tr>
649      <tr>
650        <td><a href="https://wg21.link/p1630r1">P1630R1</a></td>
651      </tr>
652      <tr> <!-- from Belfast -->
653        <td><a href="https://wg21.link/p1946r0">P1946R0</a></td>
654      </tr>
655      <tr>
656        <td><a href="https://wg21.link/p1959r0">P1959R0</a></td>
657      </tr>
658      <tr> <!-- from Prague -->
659        <td><a href="https://wg21.link/p2002r1">P2002R1</a></td>
660        <td class="full" align="center">Clang 17</td>
661      </tr>
662      <tr>
663        <td><a href="https://wg21.link/p2085r0">P2085R0</a></td>
664        <td class="full" align="center">Clang 14</td>
665      </tr>
666    <tr>
667      <td>Access checking on specializations</td>
668      <td><a href="https://wg21.link/p0692r1">P0692R1</a></td>
669      <td class="full" align="center">Clang 14</td>
670    </tr>
671    <tr>
672      <td>Default constructible and assignable stateless lambdas</td>
673      <td><a href="https://wg21.link/p0624r2">P0624R2</a></td>
674      <td class="full" align="center">Clang 8</td>
675    </tr>
676    <tr>
677      <td>Lambdas in unevaluated contexts</td>
678      <td><a href="https://wg21.link/p0315r4">P0315R4</a></td>
679      <td class="full" align="center">Clang 17</td>
680    </tr>
681    <!-- Jacksonville papers -->
682    <tr>
683      <td><tt>[[no_unique_address]]</tt> attribute</td>
684      <td><a href="https://wg21.link/p0840r2">P0840R2</a></td>
685      <td class="full" align="center">Clang 9</td>
686    </tr>
687    <tr>
688      <td><tt>[[likely]]</tt> and <tt>[[unlikely]]</tt> attributes</td>
689      <td><a href="https://wg21.link/p0479r5">P0479R5</a></td>
690      <td class="full" align="center">Clang 12</td>
691    </tr>
692    <tr>
693      <td><tt>typename</tt> optional in more contexts</td>
694      <td><a href="https://wg21.link/p0634r3">P0634R3</a></td>
695      <td class="full" align="center">Clang 16</td>
696    </tr>
697    <tr>
698      <td>Pack expansion in lambda <i>init-capture</i></td>
699      <td><a href="https://wg21.link/p0780r2">P0780R2</a></td>
700      <td class="full" align="center">Clang 9</td>
701    </tr>
702    <!-- Rapperswil papers -->
703    <tr>
704      <td>Class types as non-type template parameters</td>
705      <td><a href="https://wg21.link/p0732r2">P0732R2</a></td>
706      <td class="full" align="center">Clang 12</td>
707    </tr>
708    <tr> <!-- from Belfast -->
709      <td>Generalized non-type template parameters of scalar type</td>
710      <td><a href="https://wg21.link/p1907r1">P1907R1</a></td>
711      <td class="partial" align="center">
712        <details>
713          <summary>Clang 18 (Partial)</summary>
714          Reference type template arguments referring to instantiation-dependent objects and subobjects
715          (i.e. declared inside a template but neither type- nor value-dependent) aren't fully supported.
716        </details>
717      </td>
718    </tr>
719    <tr>
720      <td>Destroying operator delete</td>
721      <td><a href="https://wg21.link/p0722r3">P0722R3</a></td>
722      <td class="full" align="center">Clang 6</td>
723    </tr>
724    <tr>
725      <td rowspan="7">Relaxations of <tt>constexpr</tt> restrictions</td>
726      <td><a href="https://wg21.link/p1064r0">P1064R0</a></td>
727      <td class="full" align="center">Clang 9</td>
728    </tr>
729      <tr> <!-- from San Diego -->
730        <td><a href="https://wg21.link/p1002r1">P1002R1</a></td>
731        <td class="full" align="center">Clang 8</td>
732      </tr>
733      <tr>
734        <td><a href="https://wg21.link/p1327r1">P1327R1</a></td>
735        <td rowspan="2" class="full" align="center">Clang 9</td>
736      </tr>
737      <tr>
738        <td><a href="https://wg21.link/p1330r0">P1330R0</a></td>
739      </tr>
740      <tr> <!-- from Cologne -->
741        <td><a href="https://wg21.link/p1331r2">P1331R2</a></td>
742        <td rowspan="3" class="full" align="center">Clang 10</td>
743      </tr>
744      <tr>
745        <td><a href="https://wg21.link/p1668r1">P1668R1</a></td>
746      </tr>
747      <tr>
748        <td><a href="https://wg21.link/p0784r7">P0784R7</a></td>
749      </tr>
750    <tr>
751      <td>Prohibit aggregates with user-declared constructors</td>
752      <td><a href="https://wg21.link/p1008r1">P1008R1</a></td>
753      <td class="full" align="center">Clang 8</td>
754    </tr>
755    <tr>
756      <td>Feature test macros</td>
757      <td><a href="https://wg21.link/p0941r2">P0941R2</a></td>
758      <td class="full" align="center"><a href="#sd6">(see below)</a></td>
759    </tr>
760    <tr>
761      <td><tt>explicit(bool)</tt></td>
762      <td><a href="https://wg21.link/p0892r2">P0892R2</a></td>
763      <td class="full" align="center">Clang 9</td>
764    </tr>
765    <!-- San Diego papers -->
766    <tr>
767      <td>Signed integers are two's complement</td>
768      <td><a href="https://wg21.link/p1236r1">P1236R1</a></td>
769      <td class="full" align="center">Clang 9</td>
770    </tr>
771    <tr>
772      <td><tt>char8_t</tt></td>
773      <td><a href="https://wg21.link/p0482r6">P0482R6</a></td>
774      <td class="full" align="center">Clang 7 <a href="#p0482">(11)</a></td>
775    </tr>
776    <tr>
777      <td rowspan=2>Immediate functions (<tt>consteval</tt>)</td>
778      <td><a href="https://wg21.link/p1073r3">P1073R3</a></td>
779      <td class="full" align="center">Clang 17</td>
780    </tr>
781      <tr> <!-- from Prague -->
782        <td><a href="https://wg21.link/p1937r2">P1937R2</a></td>
783        <td class="full" align="center">Clang 14</td>
784      </tr>
785    <tr>
786      <td><tt>std::is_constant_evaluated</tt></td>
787      <td><a href="https://wg21.link/p0595r2">P0595R2</a></td>
788      <td class="full" align="center">Clang 9</td>
789    </tr>
790    <tr>
791      <td>Nested inline namespaces</td>
792      <td><a href="https://wg21.link/p1094r2">P1094R2</a></td>
793      <td class="full" align="center">Clang 8</td>
794    </tr>
795    <!-- Kona 2019 papers -->
796    <tr>
797      <td rowspan="2">Structured binding extensions</td>
798      <td><a href="https://wg21.link/p1091r3">P1091R3</a></td>
799      <td rowspan="2" class="full" align="center">Clang 16</td>
800    </tr>
801      <tr>
802        <td><a href="https://wg21.link/p1381r1">P1381R1</a></td>
803      </tr>
804    <tr>
805      <td rowspan="2">Stronger Unicode requirements</td>
806      <td><a href="https://wg21.link/p1041r4">P1041R4</a></td>
807      <td rowspan="2" class="full" align="center">Yes</td>
808    </tr>
809      <tr>
810        <td><a href="https://wg21.link/p1139r2">P1139R2</a></td>
811      </tr>
812    <tr>
813      <td rowspan="2">Parenthesized initialization of aggregates</td>
814      <td><a href="https://wg21.link/p0960r3">P0960R3</a></td>
815      <td rowspan="2" class="full" align="center">Clang 16</td>
816    </tr>
817      <tr> <!-- from Belfast -->
818        <td><a href="https://wg21.link/p1975r0">P1975R0</a></td>
819      </tr>
820    <tr>
821      <td rowspan="12">Modules</td>
822      <td><a href="https://wg21.link/p1103r3">P1103R3</a></td>
823      <td class="full" align="center">Clang 15</td>
824    </tr>
825      <tr> <!-- from Cologne -->
826        <td><a href="https://wg21.link/p1766r1">P1766R1</a> (<a href="#dr">DR</a>)</td>
827        <td class="full" align="center">Clang 11</td>
828      </tr>
829      <tr>
830        <td><a href="https://wg21.link/p1811r0">P1811R0</a></td>
831        <td class="none" align="center">No</td>
832      </tr>
833      <tr>
834        <td><a href="https://wg21.link/p1703r1">P1703R1</a></td>
835        <td class="none" align="center">Subsumed by P1857</td>
836      </tr>
837      <tr> <!-- from Belfast -->
838        <td><a href="https://wg21.link/p1874r1">P1874R1</a></td>
839        <td class="full" align="center">Clang 15</td>
840      </tr>
841      <tr> <!-- from Belfast -->
842        <td><a href="https://wg21.link/p1979r0">P1979R0</a></td>
843        <td class="none" align="center">No</td>
844      </tr>
845      <tr> <!-- from Prague -->
846        <td><a href="https://wg21.link/p1779r3">P1779R3</a></td>
847        <td class="full" align="center">Clang 15</td>
848      </tr>
849      <tr>
850        <td><a href="https://wg21.link/p1857r3">P1857R3</a></td>
851        <td class="none" align="center">No</td>
852      </tr>
853      <tr>
854        <td><a href="https://wg21.link/p2115r0">P2115R0</a></td>
855        <td class="partial" align="center">Partial</td>
856      </tr>
857      <tr>
858        <td><a href="https://wg21.link/p1815r2">P1815R2</a></td>
859        <td class="partial" align="center">Partial</td>
860      </tr>
861      <tr> <!-- from Kona 2022 -->
862        <td><a href="https://wg21.link/P2615R1">P2615R1</a> (<a href="#dr">DR</a>)</td>
863        <td class="none" align="center">No</td>
864      </tr>
865      <tr> <!-- from Issaquah 2023 -->
866        <td><a href="https://wg21.link/P2788R0">P2788R0</a> (<a href="#dr">DR</a>)</td>
867        <td class="none" align="center">No</td>
868      </tr>
869    <tr>
870      <td>Coroutines</td>
871      <td><a href="https://wg21.link/p0912r5">P0912R5</a></td>
872      <td class="partial" align="center">
873        <details><summary>Partial</summary>
874          Fully supported on all targets except Windows, which
875          still has some stability and ABI issues.
876        </details></td>
877    </tr>
878    <!-- Cologne 2019 papers -->
879    <tr>
880      <td>Deprecate <tt>a[b,c]</tt></td>
881      <td><a href="https://wg21.link/p1161r3">P1161R3</a></td>
882      <td class="full" align="center">Clang 9</td>
883    </tr>
884    <tr>
885      <td>Deprecate some problematic uses of <tt>volatile</tt></td>
886      <td><a href="https://wg21.link/p1152r4">P1152R4</a></td>
887      <td class="full" align="center">Clang 10</td>
888    </tr>
889    <tr>
890      <td><tt>[[nodiscard("with reason")]]</tt></td>
891      <td><a href="https://wg21.link/p1301r4">P1301R4</a></td>
892      <td class="full" align="center">Clang 9</td>
893    </tr>
894    <tr>
895      <td><tt>using enum</tt></td>
896      <td><a href="https://wg21.link/p1099r5">P1099R5</a></td>
897      <td class="full" align="center">Clang 13</td>
898    </tr>
899    <tr>
900      <td rowspan=2>Class template argument deduction for aggregates</td>
901      <td><a href="https://wg21.link/p1816r0">P1816R0</a></td>
902      <td rowspan=2 class="full" align="center">Clang 17</td>
903    </tr>
904      <tr> <!-- from Prague -->
905        <td><a href="https://wg21.link/p2082r1">P2082R1</a></td>
906      </tr>
907    <tr>
908      <td>Class template argument deduction for alias templates</td>
909      <td><a href="https://wg21.link/p1814r0">P1814R0</a></td>
910      <td class="partial" align="center">
911        <details>
912          <summary>Clang 19 (Partial)</summary>
913          This feature has been initially completed, but the feature macro
914          __cpp_deduction_guides has not been updated.
915        </details>
916      </td>
917    </tr>
918    <tr>
919      <td>Permit conversions to arrays of unknown bound</td>
920      <td><a href="https://wg21.link/p0388r4">P0388R4</a></td>
921      <td class="full" align="center">Clang 14</td>
922    </tr>
923    <tr>
924      <td><tt>constinit</tt></td>
925      <td><a href="https://wg21.link/p1143r2">P1143R2</a></td>
926      <td class="full" align="center">Clang 10</td>
927    </tr>
928    <!-- Prague 2019 papers -->
929    <tr>
930      <td>Pseudo-destructors end object lifetimes</td>
931      <td><a href="https://wg21.link/p0593r6">P0593R6</a> (<a href="#dr">DR</a>)</td>
932      <td class="full" align="center">Clang 11</td>
933    </tr>
934    <tr>
935      <td>More implicit moves</td>
936      <td><a href="https://wg21.link/p1825r0">P1825R0</a> (<a href="#dr">DR</a>)</td>
937      <td class="full" align="center">Clang 13</td>
938    </tr>
939</table>
940
941<p>
942<span id="p0482">(11): Prior to Clang 8, this feature is not enabled by
943<tt>-std=c++20</tt>, but can be enabled with <tt>-fchar8_t</tt>.
944</span>
945</p>
946</details>
947
948
949<h2 id="cxx17">C++17 implementation status</h2>
950
951<p>Clang 5 and later implement all the features of the
952<a href="https://www.iso.org/standard/68564.html">ISO C++ 2017 standard</a>.</p>
953
954<p>By default, Clang 16 or later builds C++ code according to the C++17 standard.
955You can use Clang in C++17 mode with the <code>-std=c++17</code> option
956(use <code>-std=c++1z</code> in Clang 4 and earlier).</p>
957
958<details>
959<summary>List of features and minimum Clang version with support</summary>
960
961<table width="689" border="1" cellspacing="0">
962 <tr>
963    <th>Language Feature</th>
964    <th>C++17 Proposal</th>
965    <th>Available in Clang?</th>
966 </tr>
967    <!-- Issaquah 2014 papers -->
968    <tr>
969      <td><tt>static_assert</tt> with no message</td>
970      <td><a href="https://wg21.link/n3928">N3928</a></td>
971      <td class="full" align="center">Clang 3.5</td>
972    </tr>
973    <!-- Rapperswil papers -->
974    <tr>
975      <td>Disabling trigraph expansion by default</td>
976      <td><a href="https://wg21.link/n4086">N4086</a></td>
977      <td class="full" align="center">Clang 3.5</td>
978    </tr>
979    <tr>
980      <td><tt>typename</tt> in a template template parameter</td>
981      <td><a href="https://wg21.link/n4051">N4051</a></td>
982      <td class="full" align="center">Clang 3.5</td>
983    </tr>
984    <tr>
985      <td>New <tt>auto</tt> rules for direct-list-initialization
986      <td><a href="https://wg21.link/n3922">N3922</a></td>
987      <td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td>
988    </tr>
989    <!-- Urbana papers -->
990    <tr>
991      <td rowspan="2">Fold expressions</td>
992      <td><a href="https://wg21.link/n4295">N4295</a></td>
993      <td class="full" align="center">Clang 3.6</td>
994    </tr>
995      <tr> <!-- from Jacksonville -->
996        <td><a href="https://wg21.link/p0036r0">P0036R0</a></td>
997        <td class="full" align="center">Clang 3.9</td>
998      </tr>
999    <tr>
1000      <td><tt>u8</tt> character literals</td>
1001      <td><a href="https://wg21.link/n4267">N4267</a></td>
1002      <td class="full" align="center">Clang 3.6</td>
1003    </tr>
1004    <tr>
1005      <td>Nested namespace definition</td>
1006      <td><a href="https://wg21.link/n4230">N4230</a></td>
1007      <td class="full" align="center">Clang 3.6</td>
1008    </tr>
1009    <tr>
1010      <td>Attributes for namespaces and enumerators</td>
1011      <td><a href="https://wg21.link/n4266">N4266</a></td>
1012      <td class="full" align="center">Clang 3.6</td>
1013    </tr>
1014    <tr>
1015      <td>Allow constant evaluation for all non-type template arguments</td>
1016      <td><a href="https://wg21.link/n4268">N4268</a></td>
1017      <td class="full" align="center">Clang 3.6</td>
1018    </tr>
1019    <!-- Kona papers -->
1020    <tr>
1021      <td>Remove deprecated <tt>register</tt> storage class</td>
1022      <td><a href="https://wg21.link/p0001r1">P0001R1</a></td>
1023      <td class="full" align="center">Clang 3.8</td>
1024    </tr>
1025    <tr>
1026      <td>Remove deprecated <tt>bool</tt> increment</td>
1027      <td><a href="https://wg21.link/p0002r1">P0002R1</a></td>
1028      <td class="full" align="center">Clang 3.8</td>
1029    </tr>
1030    <tr>
1031      <td>Make exception specifications part of the type system</td>
1032      <td><a href="https://wg21.link/p0012r1">P0012R1</a></td>
1033      <td class="full" align="center">Clang 4</td>
1034    </tr>
1035    <tr>
1036      <td><tt>__has_include</tt> in preprocessor conditionals</td>
1037      <td><a href="https://wg21.link/p0061r1">P0061R1</a></td>
1038      <td class="full" align="center">Yes</td>
1039    </tr>
1040    <!-- Jacksonville papers -->
1041    <tr>
1042      <td><tt>[[fallthrough]]</tt> attribute</td>
1043      <td><a href="https://wg21.link/p0188r1">P0188R1</a></td>
1044      <td class="full" align="center">Clang 3.9</td>
1045    </tr>
1046    <tr>
1047      <td rowspan="2"><tt>[[nodiscard]]</tt> attribute</td>
1048      <td><a href="https://wg21.link/p0189r1">P0189R1</a></td>
1049      <td class="full" align="center">Clang 3.9</td>
1050    </tr>
1051      <tr> <!-- from Cologne 2019 -->
1052        <td><a href="https://wg21.link/p1771r1">P1771R1</a> (<a href="#dr">DR</a>)</td>
1053        <td class="full" align="center">Clang 9</td>
1054      </tr>
1055    <tr>
1056      <td><tt>[[maybe_unused]]</tt> attribute</td>
1057      <td><a href="https://wg21.link/p0212r1">P0212R1</a></td>
1058      <td class="full" align="center">Clang 3.9</td>
1059    </tr>
1060    <tr>
1061      <td>Aggregate initialization of classes with base classes</td>
1062      <td><a href="https://wg21.link/p0017r1">P0017R1</a></td>
1063      <td class="full" align="center">Clang 3.9</td>
1064    </tr>
1065    <tr>
1066      <td><tt>constexpr</tt> lambda expressions</td>
1067      <td><a href="https://wg21.link/p0170r1">P0170R1</a></td>
1068      <td class="full" align="center">Clang 5</td>
1069    </tr>
1070    <tr>
1071      <td>Differing <tt>begin</tt> and <tt>end</tt> types in range-based <tt>for</tt></td>
1072      <td><a href="https://wg21.link/p0184r0">P0184R0</a></td>
1073      <td class="full" align="center">Clang 3.9</td>
1074    </tr>
1075    <tr>
1076      <td>Lambda capture of <tt>*this</tt></td>
1077      <td><a href="https://wg21.link/p0018r3">P0018R3</a></td>
1078      <td class="full" align="center">Clang 3.9</td>
1079    </tr>
1080    <tr>
1081      <td>Direct-list-initialization of <tt>enum</tt>s</td>
1082      <td><a href="https://wg21.link/p0138r2">P0138R2</a></td>
1083      <td class="full" align="center">Clang 3.9</td>
1084    </tr>
1085    <tr>
1086      <td>Hexadecimal floating-point literals</td>
1087      <td><a href="https://wg21.link/p0245r1">P0245R1</a></td>
1088      <td class="full" align="center">Yes</td>
1089    </tr>
1090    <!-- Oulu papers -->
1091    <tr>
1092      <td>Using attribute namespaces without repetition</td>
1093      <td><a href="https://wg21.link/p0028r4">P0028R4</a></td>
1094      <td class="full" align="center">Clang 3.9</td>
1095    </tr>
1096    <tr>
1097      <td>Dynamic memory allocation for over-aligned data</td>
1098      <td><a href="https://wg21.link/p0035r4">P0035R4</a></td>
1099      <td class="full" align="center">Clang 4</td>
1100    </tr>
1101    <tr>
1102      <td rowspan="4">Template argument deduction for class templates</td>
1103      <td><a href="https://wg21.link/p0091r3">P0091R3</a></td>
1104      <td rowspan="2" class="full" align="center">Clang 5</td>
1105    </tr>
1106      <tr> <!-- from Issaquah -->
1107        <td><a href="https://wg21.link/p0512r0">P0512R0</a></td>
1108      </tr>
1109      <tr>
1110        <!-- from Kona 2017 -->
1111        <td><a href="https://wg21.link/p0620r1">P0620R0</a> (<a href="#dr">DR</a>)</td>
1112        <td class="full" align="center">Clang 7</td>
1113      </tr>
1114      <tr>
1115        <!-- from Toronto 2017 -->
1116        <td><a href="https://wg21.link/p0702r1">P0702R1</a> (<a href="#dr">DR</a>)</td>
1117        <td class="full" align="center">Clang 6</td>
1118      </tr>
1119    <tr>
1120      <td>Non-type template parameters with <tt>auto</tt> type</td>
1121      <td><a href="https://wg21.link/p0127r2">P0127R2</a></td>
1122      <td class="full" align="center">Clang 4</td>
1123    </tr>
1124    <tr>
1125      <td>Guaranteed copy elision</td>
1126      <td><a href="https://wg21.link/p0135r1">P0135R1</a></td>
1127      <td class="full" align="center">Clang 4</td>
1128    </tr>
1129    <tr>
1130      <td rowspan=2>Stricter expression evaluation order</td>
1131      <td><a href="https://wg21.link/p0145r3">P0145R3</a></td>
1132      <td class="full" align="center" rowspan=2>Clang 4 <a href="#p0145">(9)</a></td>
1133    </tr>
1134    <tr>
1135      <td><a href="https://wg21.link/p0400r0">P0400R0</a></td>
1136    </tr>
1137    <tr>
1138      <td>Requirement to ignore unknown attributes</td>
1139      <td><a href="https://wg21.link/p0283r2">P0283R2</a></td>
1140      <td class="full" align="center">Yes</td>
1141    </tr>
1142    <tr>
1143      <td><tt>constexpr</tt> <em>if-statement</em>s</td>
1144      <td><a href="https://wg21.link/p0292r2">P0292R2</a></td>
1145      <td class="full" align="center">Clang 3.9</td>
1146    </tr>
1147    <tr>
1148      <td>Inline variables</td>
1149      <td><a href="https://wg21.link/p0386r2">P0386R2</a></td>
1150      <td class="full" align="center">Clang 3.9</td>
1151    </tr>
1152    <tr>
1153      <td rowspan="3">Structured bindings</td>
1154      <td><a href="https://wg21.link/p0217r3">P0217R3</a></td>
1155      <td class="full" align="center">Clang 4</td>
1156    </tr>
1157      <tr>
1158        <!-- from Jacksonville 2018 -->
1159        <td><a href="https://wg21.link/p0961r1">P0961R1</a> (<a href="#dr">DR</a>)</td>
1160        <td class="full" align="center">Clang 8</td>
1161      </tr>
1162      <tr>
1163        <!-- from Jacksonville 2018 -->
1164        <td><a href="https://wg21.link/p0969r0">P0969R0</a> (<a href="#dr">DR</a>)</td>
1165        <td class="full" align="center">Clang 8</td>
1166      </tr>
1167    <tr>
1168      <td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td>
1169      <td><a href="https://wg21.link/p0305r1">P0305R1</a></td>
1170      <td class="full" align="center">Clang 3.9</td>
1171    </tr>
1172    <!-- Issaquah 2016 papers -->
1173    <tr>
1174      <td>Matching template template parameters to compatible arguments</td>
1175      <td><a href="https://wg21.link/p0522r0">P0522R0</a> (<a href="#dr">DR</a>)</td>
1176      <td class="full" align="center">Clang 19 <a href="#p0522">(10)</a></td>
1177    </tr>
1178    <tr>
1179      <td>Removing deprecated dynamic exception specifications</td>
1180      <td><a href="https://wg21.link/p0003r5">P0003R5</a></td>
1181      <td class="full" align="center">Clang 4</td>
1182    </tr>
1183    <tr>
1184      <td>Pack expansions in <em>using-declarations</em></td>
1185      <td><a href="https://wg21.link/p0195r2">P0195R2</a></td>
1186      <td class="full" align="center">Clang 4</td>
1187    </tr>
1188</table>
1189
1190<p>
1191<span id="n3922">(8): This is a backwards-incompatible change that is applied to
1192all language versions that allow type deduction from <tt>auto</tt>
1193(per the request of the C++ committee).
1194In Clang 3.7, a warning is emitted for all cases that would change meaning.
1195</span><br>
1196<span id="p0145">(9): Under the MS ABI, function parameters are destroyed from
1197left to right in the callee. As a result, function parameters in calls to
1198<tt>operator&lt;&lt;</tt>, <tt>operator&gt;&gt;</tt>, <tt>operator-&gt;*</tt>,
1199<tt>operator&amp;&amp;</tt>, <tt>operator||</tt>, and <tt>operator,</tt>
1200functions using expression syntax are no longer guaranteed to be destroyed in
1201reverse construction order in that ABI.
1202This is not fully supported during constant expression evaluation until Clang 12.
1203</span><br>
1204<span id="p0522">(10): While this feature was initially implemented in Clang 4,
1205it was not enabled by default prior to clang 19, but could be enabled with
1206<tt>-frelaxed-template-template-args</tt>.
1207In Clang 19, the flag was deprecated.
1208In Clang 21, the flag was removed altogether.
1209</span>
1210</p>
1211</details>
1212
1213<h2 id="cxx14">C++14 implementation status</h2>
1214
1215<p>Clang 3.4 and later implement all of the <a
1216    href="https://www.iso.org/standard/64029.html">ISO
1217    C++ 2014 standard</a>.</p>
1218
1219<p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option
1220(use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p>
1221
1222<details>
1223<summary>List of features and minimum Clang version with support</summary>
1224
1225<table width="689" border="1" cellspacing="0">
1226 <tr>
1227    <th>Language Feature</th>
1228    <th>C++14 Proposal</th>
1229    <th>Available in Clang?</th>
1230 </tr>
1231    <tr>
1232      <td>Tweak to certain C++ contextual conversions</td>
1233      <td><a href="https://wg21.link/n3323">N3323</a></td>
1234      <td class="full" align="center">Clang 3.4</td>
1235    </tr>
1236    <tr>
1237      <td>Binary literals</td>
1238      <td><a href="https://wg21.link/n3472">N3472</a></td>
1239      <td class="full" align="center">Clang 2.9</td>
1240    </tr>
1241    <tr>
1242      <td>decltype(auto)</td>
1243      <td rowspan=2 style="vertical-align:middle"><a href="https://wg21.link/n3638">N3638</a></td>
1244      <td class="full" align="center">Clang 3.3</td>
1245    </tr>
1246    <tr>
1247      <td>Return type deduction for normal functions</td>
1248      <td class="full" align="center">Clang 3.4</td>
1249    </tr>
1250    <tr>
1251      <td>Initialized lambda captures</td>
1252      <td><a href="https://wg21.link/n3648">N3648</a></td>
1253      <td class="full" align="center">Clang 3.4</td>
1254    </tr>
1255    <tr>
1256      <td>Generic lambdas</td>
1257      <td><a href="https://wg21.link/n3649">N3649</a></td>
1258      <td class="full" align="center">Clang 3.4</td>
1259    </tr>
1260    <tr>
1261      <td>Variable templates</td>
1262      <td><a href="https://wg21.link/n3651">N3651</a></td>
1263      <td class="full" align="center">Clang 3.4</td>
1264    </tr>
1265    <tr>
1266      <td>Relaxing requirements on constexpr functions</td>
1267      <td><a href="https://wg21.link/n3652">N3652</a></td>
1268      <td class="full" align="center">Clang 3.4</td>
1269    </tr>
1270    <tr>
1271      <td>Member initializers and aggregates</td>
1272      <td><a href="https://wg21.link/n3653">N3653</a></td>
1273      <td class="full" align="center">Clang 3.3</td>
1274    </tr>
1275    <tr>
1276      <td>Clarifying memory allocation</td>
1277      <td><a href="https://wg21.link/n3664">N3664</a></td>
1278      <td class="full" align="center">Clang 3.4</td>
1279    </tr>
1280    <tr>
1281      <td><tt>[[deprecated]]</tt> attribute</td>
1282      <td><a href="https://wg21.link/n3760">N3760</a></td>
1283      <td class="full" align="center">Clang 3.4</td>
1284    </tr>
1285    <tr>
1286      <td>Single quotation mark as digit separator</td>
1287      <td><a href="https://wg21.link/n3781">N3781</a></td>
1288      <td class="full" align="center">Clang 3.4</td>
1289    </tr>
1290    <tr>
1291      <td>C++ Sized Deallocation</td>
1292      <td><a href="https://wg21.link/n3778">N3778</a></td>
1293      <td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td>
1294    </tr>
1295</table>
1296
1297<p>
1298<span id="n3778">(7): The user must supply definitions of the sized deallocation
1299  functions, either by providing them explicitly or by using a C++ standard library
1300  that does. <code>libstdc++</code> added these functions in version 5.0, and
1301  <code>libc++</code> added them in version 3.7. The user can also use the
1302  <code>-fno-sized-deallocation</code> option to disable sized deallocation.
1303</span>
1304</p>
1305</details>
1306
1307<h2 id="cxx11">C++11 implementation status</h2>
1308
1309<p>Clang 3.3 and later implement all of the <a
1310  href="https://www.iso.org/standard/50372.html">ISO
1311  C++ 2011 standard</a>.</p>
1312
1313<p>You can use Clang in C++11 mode with the <code>-std=c++11</code>
1314option. Clang's C++11 mode can be used with
1315<a href="https://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.</p>
1316
1317<details>
1318<summary>List of features and minimum Clang version with support</summary>
1319
1320<table width="689" border="1" cellspacing="0">
1321 <tr>
1322    <th>Language Feature</th>
1323    <th>C++11 Proposal</th>
1324    <th>Available in Clang?</th>
1325 </tr>
1326     <tr>
1327      <td rowspan="2">Rvalue references</td>
1328      <td><a href="https://wg21.link/n2118">N2118</a></td>
1329      <td class="full" align="center">Clang 2.9</td>
1330      <tr> <!-- from Kona 2019-->
1331        <td><a href="https://wg21.link/p1825r0">P1825R0</a> (<a href="#dr">DR</a>)</td>
1332        <td class="full" align="center">Clang 13</td>
1333      </tr>
1334    </tr>
1335    <tr>
1336      <td>&nbsp;&nbsp;&nbsp;&nbsp;Rvalue references for <code>*this</code></td>
1337      <td><a href="https://wg21.link/n2439">N2439</a></td>
1338      <td class="full" align="center">Clang 2.9</td>
1339    </tr>
1340    <tr>
1341      <td>Initialization of class objects by rvalues</td>
1342      <td><a href="https://wg21.link/n1610">N1610</a></td>
1343      <td class="full" align="center">Clang 2.9</td>
1344    </tr>
1345    <tr>
1346      <td>Non-static data member initializers</td>
1347      <td><a href="https://wg21.link/n2756">N2756</a></td>
1348      <td class="full" align="center">Clang 3.0</td>
1349    </tr>
1350    <tr>
1351      <td>Variadic templates</td>
1352      <td><a href="https://wg21.link/n2242">N2242</a></td>
1353      <td class="full" align="center">Clang 2.9</td>
1354    </tr>
1355    <tr>
1356      <td>&nbsp;&nbsp;&nbsp;&nbsp;Extending variadic template template parameters</td>
1357      <td><a href="https://wg21.link/n2555">N2555</a></td>
1358      <td class="full" align="center">Clang 2.9</td>
1359    </tr>
1360    <tr>
1361      <td rowspan="3">Initializer lists</td>
1362      <td><a href="https://wg21.link/n2672">N2672</a></td>
1363      <td class="full" align="center">Clang 3.1</td>
1364    </tr>
1365      <tr> <!-- from Kona 2019-->
1366        <td><a href="https://wg21.link/p1009r2">P1009R2</a> (<a href="#dr">DR</a>)</td>
1367        <td class="full" align="center">Clang 9</td>
1368      </tr>
1369      <tr> <!-- from Prague-->
1370        <td><a href="https://wg21.link/p1957r2">P1957R2</a> (<a href="#dr">DR</a>)</td>
1371        <td class="full" align="center">Clang 11</td>
1372      </tr>
1373    <tr>
1374      <td>Static assertions</td>
1375      <td><a href="https://wg21.link/n1720">N1720</a></td>
1376      <td class="full" align="center">Clang 2.9</td>
1377    </tr>
1378    <tr>
1379      <td><code>auto</code>-typed variables</td>
1380      <td><a href="https://wg21.link/n1984">N1984</a></td>
1381      <td class="full" align="center">Clang 2.9</td>
1382    </tr>
1383    <tr>
1384      <td>&nbsp;&nbsp;&nbsp;&nbsp;Multi-declarator <code>auto</code></td>
1385      <td><a href="https://wg21.link/n1737">N1737</a></td>
1386      <td class="full" align="center">Clang 2.9</td>
1387    </tr>
1388    <tr>
1389      <td>&nbsp;&nbsp;&nbsp;&nbsp;Removal of auto as a storage-class specifier</td>
1390      <td><a href="https://wg21.link/n2546">N2546</a></td>
1391      <td class="full" align="center">Clang 2.9</td>
1392    </tr>
1393    <tr>
1394      <td>&nbsp;&nbsp;&nbsp;&nbsp;New function declarator syntax</td>
1395      <td><a href="https://wg21.link/n2541">N2541</a></td>
1396      <td class="full" align="center">Clang 2.9</td>
1397    </tr>
1398    <tr>
1399      <td rowspan="2">Lambda expressions</td>
1400      <td><a href="https://wg21.link/n2927">N2927</a></td>
1401      <td class="full" align="center">Clang 3.1</td>
1402    </tr>
1403      <tr>
1404        <!-- from Albuquerque 2017 -->
1405        <td><a href="https://wg21.link/p0588r1">P0588R1</a> (<a href="#dr">DR</a>)</td>
1406        <td class="none" align="center">No</td>
1407      </tr>
1408    <tr>
1409      <td>Declared type of an expression</td>
1410      <td><a href="https://wg21.link/n2343">N2343</a></td>
1411      <td class="full" align="center">Clang 2.9</td>
1412    </tr>
1413    <tr>
1414      <td>&nbsp;&nbsp;&nbsp;&nbsp;Incomplete return types</td>
1415      <td><a href="https://wg21.link/n3276">N3276</a></td>
1416      <td class="full" align="center">Clang 3.1</td>
1417    </tr>
1418    <tr>
1419      <td>Right angle brackets</td>
1420      <td><a href="https://wg21.link/n1757">N1757</a></td>
1421      <td class="full" align="center">Clang 2.9</td>
1422    </tr>
1423    <tr>
1424      <td>Default template arguments for function templates</td>
1425      <td><a href="https://wg21.link/cwg226">DR226</a></td>
1426      <td class="full" align="center">Clang 2.9</td>
1427    </tr>
1428    <tr>
1429      <td>Solving the SFINAE problem for expressions</td>
1430      <td><a href="https://wg21.link/n2634">DR339</a></td>
1431      <td class="full" align="center">Clang 2.9</td>
1432    </tr>
1433    <tr>
1434      <td>Alias templates</td>
1435      <td><a href="https://wg21.link/n2258">N2258</a></td>
1436      <td class="full" align="center">Clang 3.0</td>
1437    </tr>
1438    <tr>
1439      <td>Extern templates</td>
1440      <td><a href="https://wg21.link/n1987">N1987</a></td>
1441      <td class="full" align="center">Clang 2.9</td>
1442    </tr>
1443    <tr>
1444      <td>Null pointer constant</td>
1445      <td><a href="https://wg21.link/n2431">N2431</a></td>
1446      <td class="full" align="center">Clang 3.0</td>
1447    </tr>
1448    <tr>
1449      <td>Strongly-typed enums</td>
1450      <td><a href="https://wg21.link/n2347">N2347</a></td>
1451      <td class="full" align="center">Clang 2.9</td>
1452    </tr>
1453    <tr>
1454      <td>Forward declarations for enums</td>
1455      <td><a href="https://wg21.link/n2764">N2764</a>
1456      <br><a href="https://wg21.link/cwg1206">DR1206</a></td>
1457      <td class="full" align="center">Clang 3.1</td>
1458    </tr>
1459    <tr>
1460      <td>Standardized attribute syntax</td>
1461      <td><a href="https://wg21.link/n2761">N2761</a></td>
1462      <td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td>
1463    </tr>
1464    <tr>
1465      <td rowspan="2">Generalized constant expressions</td>
1466      <td><a href="https://wg21.link/n2235">N2235</a></td>
1467      <td class="full" align="center">Clang 3.1</td>
1468    </tr>
1469      <tr>
1470        <!-- from Albuquerque 2017 -->
1471        <td><a href="https://wg21.link/p0859r0">P0859R0</a> (<a href="#dr">DR</a>)</td>
1472        <td class="full" align="center">Clang 8</td>
1473      </tr>
1474    <tr>
1475      <td>Alignment support</td>
1476      <td><a href="https://wg21.link/n2341">N2341</a></td>
1477      <td class="full" align="center">Clang 3.3</td>
1478    </tr>
1479    <tr>
1480      <td>Conditionally-support behavior</td>
1481      <td><a href="https://wg21.link/n1627">N1627</a></td>
1482      <td class="full" align="center">Clang 2.9</td>
1483    </tr>
1484    <tr>
1485      <td>Changing undefined behavior into diagnosable errors</td>
1486      <td><a href="https://wg21.link/n1727">N1727</a></td>
1487      <td class="full" align="center">Clang 2.9</td>
1488    </tr>
1489    <tr>
1490      <td>Delegating constructors</td>
1491      <td><a href="https://wg21.link/n1986">N1986</a></td>
1492      <td class="full" align="center">Clang 3.0</td>
1493    </tr>
1494    <tr>
1495      <td rowspan="2">Inheriting constructors</td>
1496      <td><a href="https://wg21.link/n2540">N2540</a></td>
1497      <td class="full" align="center">Clang 3.3</td>
1498    </tr>
1499      <tr>
1500        <!-- from Kona 2015 -->
1501        <td><a href="https://wg21.link/p0136r1">P0136R1</a> (<a href="#dr">DR</a>)</td>
1502        <td class="full" align="center">Clang 3.9</td>
1503      </tr>
1504    <tr>
1505      <td>Explicit conversion operators</td>
1506      <td><a href="https://wg21.link/n2437">N2437</a></td>
1507      <td class="full" align="center">Clang 3.0</td>
1508    </tr>
1509    <tr>
1510      <td>New character types</td>
1511      <td><a href="https://wg21.link/n2249">N2249</a></td>
1512      <td class="full" align="center">Clang 2.9</td>
1513    </tr>
1514    <tr>
1515      <td>Unicode string literals</td>
1516      <td><a href="https://wg21.link/n2442">N2442</a></td>
1517      <td class="full" align="center">Clang 3.0</td>
1518    </tr>
1519    <tr>
1520      <td>Raw string literals</td>
1521      <td><a href="https://wg21.link/n2442">N2442</a></td>
1522      <td class="full" align="center">Clang 3.0</td>
1523    </tr>
1524    <tr>
1525      <td>Universal character names in literals</td>
1526      <td><a href="https://wg21.link/n2170">N2170</a></td>
1527      <td class="full" align="center">Clang 3.1</td>
1528    </tr>
1529    <tr>
1530      <td>User-defined literals</td>
1531      <td><a href="https://wg21.link/n2765">N2765</a></td>
1532      <td class="full" align="center">Clang 3.1</td>
1533    </tr>
1534    <tr>
1535      <td>Standard Layout Types</td>
1536      <td><a href="https://wg21.link/n2342">N2342</a></td>
1537      <td class="full" align="center">Clang 3.0</td>
1538    </tr>
1539    <tr>
1540      <td rowspan="2">Defaulted functions</td>
1541      <td><a href="https://wg21.link/n2346">N2346</a></td>
1542      <td class="full" align="center">Clang 3.0</td>
1543    </tr>
1544      <tr> <!-- from Kona 2019-->
1545        <td><a href="https://wg21.link/p1286r2">P1286R2</a> (<a href="#dr">DR</a>)</td>
1546        <td class="full" align="center">Clang 9</td>
1547      </tr>
1548    <tr>
1549      <td>Deleted functions</td>
1550      <td><a href="https://wg21.link/n2346">N2346</a></td>
1551      <td class="full" align="center">Clang 2.9</td>
1552    </tr>
1553    <tr>
1554      <td>Extended friend declarations</td>
1555      <td><a href="https://wg21.link/n1791">N1791</a></td>
1556      <td class="full" align="center">Clang 2.9</td>
1557    </tr>
1558    <tr>
1559      <td>Extending <code>sizeof</code></td>
1560      <td><a href="https://wg21.link/n2253">N2253</a>
1561      <br><a href="https://wg21.link/cwg850">DR850</a></td>
1562      <td class="full" align="center">Clang 3.1</td>
1563    </tr>
1564    <tr>
1565      <td>Inline namespaces</td>
1566      <td><a href="https://wg21.link/n2535">N2535</a></td>
1567      <td class="full" align="center">Clang 2.9</td>
1568    </tr>
1569    <tr>
1570      <td>Unrestricted unions</td>
1571      <td><a href="https://wg21.link/n2544">N2544</a></td>
1572      <td class="full" align="center">Clang 3.1</td>
1573    </tr>
1574    <tr>
1575      <td>Local and unnamed types as template arguments</td>
1576      <td><a href="https://wg21.link/n2657">N2657</a></td>
1577      <td class="full" align="center">Clang 2.9</td>
1578    </tr>
1579    <tr>
1580      <td rowspan="2">Range-based for</td>
1581      <td><a href="https://wg21.link/n2930">N2930</a></td>
1582      <td class="full" align="center">Clang 3.0</td>
1583    </tr>
1584      <tr>
1585        <!-- from Jacksonville 2018 -->
1586        <td><a href="https://wg21.link/p0962r1">P0962R1</a> (<a href="#dr">DR</a>)</td>
1587        <td class="full" align="center">Clang 8</td>
1588      </tr>
1589    <tr>
1590      <td>Explicit virtual overrides</td>
1591      <td><a href="https://wg21.link/n2928">N2928</a>
1592      <br><a href="https://wg21.link/n3206">N3206</a>
1593      <br><a href="https://wg21.link/n3272">N3272</a></td>
1594      <td class="full" align="center">Clang 3.0</td>
1595    </tr>
1596    <tr>
1597      <td>Minimal support for garbage collection and reachability-based leak detection</td>
1598      <td><a href="https://wg21.link/n2670">N2670</a></td>
1599      <td class="na" align="center">N/A <a href="#n2670">(2)</a></td>
1600    </tr>
1601    <tr>
1602      <td>Allowing move constructors to throw [noexcept]</td>
1603      <td><a href="https://wg21.link/n3050">N3050</a></td>
1604      <td class="full" align="center">Clang 3.0</td>
1605    </tr>
1606    <tr>
1607      <td>Defining move special member functions</td>
1608      <td><a href="https://wg21.link/n3053">N3053</a></td>
1609      <td class="full" align="center">Clang 3.0</td>
1610    </tr>
1611
1612    <tr class="separator">
1613      <th align="center" colspan="3">Concurrency</th>
1614    </tr>
1615    <tr>
1616      <td>Sequence points</td>
1617      <td><a href="https://wg21.link/n2239">N2239</a></td>
1618      <td class="full" align="center">Clang 3.3</td>
1619    </tr>
1620    <tr>
1621      <td>Atomic operations</td>
1622      <td><a href="https://wg21.link/n2427">N2427</a></td>
1623      <td class="full" align="center">Clang 3.1</td>
1624    </tr>
1625    <tr>
1626      <td>Strong Compare and Exchange</td>
1627      <td><a href="https://wg21.link/n2748">N2748</a></td>
1628      <td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td>
1629    </tr>
1630    <tr>
1631      <td>Bidirectional Fences</td>
1632      <td><a href="https://wg21.link/n2752">N2752</a></td>
1633      <td class="full" align="center">Clang 3.1</td>
1634    </tr>
1635
1636    <tr>
1637      <td>Memory model</td>
1638      <td><a href="https://wg21.link/n2429">N2429</a></td>
1639      <td class="full" align="center">Clang 3.2</td>
1640    </tr>
1641    <tr>
1642      <td>Data-dependency ordering: atomics and memory model</td>
1643      <td><a href="https://wg21.link/n2664">N2664</a></td>
1644      <td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td>
1645    </tr>
1646    <tr>
1647      <td>Propagating exceptions</td>
1648      <td><a href="https://wg21.link/n2179">N2179</a></td>
1649      <td class="full" align="center">Clang 2.9</td>
1650    </tr>
1651    <tr>
1652      <td>Allow atomics use in signal handlers</td>
1653      <td><a href="https://wg21.link/n2547">N2547</a></td>
1654      <td class="full" align="center">Clang 3.1</td>
1655    </tr>
1656    <tr>
1657      <td>Thread-local storage</td>
1658      <td><a href="https://wg21.link/n2659">N2659</a></td>
1659      <td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td>
1660    </tr>
1661    <tr>
1662      <td>Dynamic initialization and destruction with concurrency</td>
1663      <td><a href="https://wg21.link/n2660">N2660</a></td>
1664      <td class="full" align="center">Clang 2.9</td>
1665    </tr>
1666
1667    <tr class="separator">
1668      <th align="center" colspan="3">C99 Features in C++11</th>
1669    </tr>
1670    <tr>
1671      <td><code>__func__</code> predefined identifier</td>
1672      <td><a href="https://wg21.link/n2340">N2340</a></td>
1673      <td class="full" align="center">Clang 2.9</td>
1674    </tr>
1675    <tr>
1676      <td>C99 preprocessor</td>
1677      <td><a href="https://wg21.link/n1653">N1653</a></td>
1678      <td class="full" align="center">Clang 2.9</td>
1679    </tr>
1680    <tr>
1681      <td><code>long long</code></td>
1682      <td><a href="https://wg21.link/n1811">N1811</a></td>
1683      <td class="full" align="center">Clang 2.9</td>
1684    </tr>
1685    <tr>
1686      <td>Extended integral types</td>
1687      <td><a href="https://wg21.link/n1988">N1988</a></td>
1688      <td class="na" align="center">N/A <a href="#n1988">(6)</a></td>
1689    </tr>
1690</table>
1691
1692<p>
1693<span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute
1694has no effect.</span><br>
1695<span id="n2670">(2): No compiler changes are required for an implementation
1696such as Clang that does not provide garbage collection.</span><br>
1697<span id="n2748">(3): All compare-exchange operations are emitted as
1698strong compare-exchanges.</span><br>
1699<span id="n2664">(4): <code>memory_order_consume</code> is lowered to
1700<code>memory_order_acquire</code>.</span><br>
1701<span id="n2659">(5): <code>thread_local</code> support
1702requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such
1703as <a href="https://libcxxabi.llvm.org">libc++abi</a> 3.6 or later,
1704or libsupc++ 4.8 or later.</span><br>
1705<span id="n1988">(6): No compiler changes are required for an implementation
1706such as Clang that does not provide any extended integer types.
1707<code>__int128</code> is not treated as an extended integer type,
1708because changing <code>intmax_t</code> would be an ABI-incompatible
1709change.</span>
1710</p>
1711</details>
1712
1713
1714<h2 id="cxx98">C++98 implementation status</h2>
1715
1716<p>Clang implements all of the ISO C++ 1998 standard
1717  (including the defects addressed in the ISO C++ 2003 standard)
1718  except for <tt>export</tt> (which was removed in C++11).
1719
1720<h2 id="dr">Defect reports</h2>
1721
1722<p>Clang generally aims to implement resolutions to Defect Reports (bug fixes
1723against prior standards) retroactively, in all prior standard versions where
1724the fix is meaningful. Significant Defect Report changes to language features
1725after the publication of the relevant standard are marked (DR) in the above
1726table.</p>
1727
1728<p>Clang also has a test suite for conformance to resolutions for issues on the
1729<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_toc.html">C++ core issues list</a>,
1730most of which are considered Defect Reports.
1731<a href="cxx_dr_status.html">Implementation status for C++ core issues</a> based on
1732that test suite is tracked on a separate page.</p>
1733
1734<h2 id="ts">Technical specifications and standing documents</h2>
1735
1736<p>ISO C++ also publishes a number of documents describing additional language
1737and library features that are not part of standard C++.</p>
1738
1739<details open>
1740<summary>List of features and minimum Clang version with support</summary>
1741
1742<table width="689" border="1" cellspacing="0">
1743 <tr>
1744    <th>Document</th>
1745    <th>Latest draft</th>
1746    <th>Compiler flag</th>
1747    <th>Available in Clang?</th>
1748 </tr>
1749    <tr id="sd6">
1750      <td rowspan="7">SD-6: SG10 feature test recommendations</td>
1751      <td rowspan="7"><a href="https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations">SD-6</a></td>
1752      <td rowspan="7">N/A</td>
1753      <td class="full" align="center">
1754        Clang 3.4 (<a href="https://wg21.link/n3745">N3745</a>)</br>
1755      </td>
1756    </tr>
1757    <tr>
1758      <td class="full" align="center">
1759        Clang 3.6 (<a href="https://wg21.link/n4200">N4200</a>)</a>
1760      </td>
1761    </tr>
1762    <tr>
1763      <td class="full" align="center">
1764        Clang 4 (<a href="https://wg21.link/p0096r3">P0096R3</a>)</a>
1765      </td>
1766    </tr>
1767    <tr>
1768      <td class="full" align="center">
1769        Clang 5 (<a href="https://wg21.link/p0096r4">P0096R4</a>)</a>
1770      </td>
1771    </tr>
1772    <tr>
1773      <td class="full" align="center">
1774        Clang 7 (<a href="https://wg21.link/p0096r5">P0096R5</a>)</a>
1775      </td>
1776    </tr>
1777    <tr>
1778      <td class="full" align="center">
1779        Clang 9 (<a href="https://wg21.link/p1353r0">P1353R0</a>)
1780      </td>
1781    </tr>
1782    <tr>
1783      <td class="full" align="center">
1784        Clang 10 (<a href="https://wg21.link/p1902r1">P1902R1</a>)</a>
1785      </td>
1786    </tr>
1787    <!-- No compiler support is known to be needed for:
1788           * Concurrency TS
1789           * Parallelism TS (v1, v2)
1790           * Ranges TS
1791           * Networking TS
1792           * File System TS
1793    -->
1794    <tr>
1795      <td>[TS] Concepts</td>
1796      <td><a href="https://wg21.link/p0121r0">P0121R0</a></td>
1797      <td></td>
1798      <td class="na" align="center">Superseded by <a href="#p0734">P0734R0</a></td>
1799    </tr>
1800    <tr>
1801      <!-- track unimplemented Coroutines features: p0913r1 p0914r1 p1356r0 -->
1802      <td rowspan="2">[TS] Coroutines</td>
1803      <td rowspan="2"><a href="https://isocpp.org/files/papers/N4663.pdf">N4663</a></td>
1804      <td><tt>-fcoroutines-ts<br>-stdlib=libc++</tt></td>
1805      <td class="full" align="center">Clang 5</td>
1806    </tr>
1807    <tr>
1808      <td><tt>-std=c++20<br>-stdlib=libc++</tt></td>
1809      <td class="na" align="center">Superseded by <a href="#p0912">P0912R5</a></td>
1810    </tr>
1811    <tr>
1812      <td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td>
1813      <td><a href="https://wg21.link/n4480">N4480</a></td>
1814      <td>N/A</td>
1815      <td class="none" align="center">No</td>
1816    </tr>
1817    <tr>
1818      <td>[TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td>
1819     <td><a href="https://wg21.link/n4617">N4617</a></td>
1820      <td>N/A</td>
1821      <td class="full" align="center">Clang 9 (<a href="docs/LanguageExtensions.html#source-location-builtins">documentation</a>)</td>
1822    </tr>
1823    <tr>
1824      <td>[TS] Modules</td>
1825      <td><a href="https://wg21.link/n4720">N4720</a></td>
1826      <td><tt>-fmodules-ts</tt></td>
1827      <td class="na" align="center">Superseded by <a href="#p1103">P1103R3</a></td>
1828    </tr>
1829    <tr>
1830      <td>[DRAFT TS] Reflection</td>
1831      <td><a href="https://wg21.link/n4818">N4818</a></td>
1832      <td></td>
1833      <td class="none" align="center">No</td>
1834    </tr>
1835    <tr>
1836      <td>[TS] Transactional Memory</td>
1837      <td><a href="https://wg21.link/n4514">N4514</a></td>
1838      <td></td>
1839      <td class="none" align="center">No</td>
1840    </tr>
1841</table>
1842</details>
1843
1844</div>
1845</body>
1846</html>
1847