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