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