cxx_status.html 48.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>Clang - C++20, C++17, C++14, C++11 and C++98 Status</title>
  <link type="text/css" rel="stylesheet" href="menu.css">
  <link type="text/css" rel="stylesheet" href="content.css">
  <style type="text/css">
    .none { background-color: #FFCCCC }
    .partial { background-color: #FFE0B0 }
    .unreleased { background-color: #FFFF99 }
    .full { background-color: #CCFF99 }
    .na { background-color: #DDDDDD }
    :target { background-color: #FFFFBB; outline: #DDDD55 solid thin; }
    th { background-color: #FFDDAA }
    td { vertical-align: middle }
    tt { white-space: nowrap }
  </style>
</head>
<body>

<!--#include virtual="menu.html.incl"-->

<div id="content">

<!--*************************************************************************-->
<h1>C++ Support in Clang</h1>
<!--*************************************************************************-->

<p>Clang fully implements all published ISO C++ standards
(<a href="#cxx98">C++98 / C++03</a>,
<a href="#cxx11">C++11</a>,
<a href="#cxx14">C++14</a>, and
<a href="#cxx17">C++17</a>), and some of the upcoming <a
href="#cxx20">C++20</a> standard.

<p>The Clang community is continually striving to improve C++ standards
compliance between releases by submitting and tracking <a
href="cxx_dr_status.html">C++ Defect Reports</a> and implementing resolutions
as they become available.</p>

<p>Experimental work is also under way to implement <a href="#ts">C++ Technical
Specifications</a> that will help drive the future of the C++ programming
language.</p>

<p>The <a href="https://bugs.llvm.org/">LLVM bug tracker</a> contains Clang
C++ components that track known bugs with Clang's language conformance in
each language mode.</p>

<h2 id="cxx98">C++98 implementation status</h2>

<p>Clang implements all of the ISO C++ 1998 standard
  (including the defects addressed in the ISO C++ 2003 standard)
  except for <tt>export</tt> (which was removed in C++11).

<h2 id="cxx11">C++11 implementation status</h2>

<p>Clang 3.3 and later implement all of the <a
  href="https://www.iso.org/standard/50372.html">ISO
  C++ 2011 standard</a>.

<p>By default, Clang builds C++ code according to the C++98 standard, with many
C++11 features accepted as extensions. You can use Clang in C++11 mode with the
<code>-std=c++11</code> option. Clang's C++11 mode can be used
with <a href="https://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.

<details>
<summary>List of features and minimum Clang version with support</summary>

<table width="689" border="1" cellspacing="0">
 <tr>
    <th>Language Feature</th>
    <th>C++11 Proposal</th>
    <th>Available in Clang?</th>
 </tr>
     <tr>
      <td rowspan="2">Rvalue references</td>
      <td><a href="https://wg21.link/n2118">N2118</a></td>
      <td class="full" align="center">Clang 2.9</td>
      <tr> <!-- from Kona 2019-->
        <td><a href="https://wg21.link/p1825r0">P1825R0</a> (<a href="#dr">DR</a>)</td>
        <td class="none" align="center">No</td>
      </tr>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;Rvalue references for <code>*this</code></td>
      <td><a href="https://wg21.link/n2439">N2439</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Initialization of class objects by rvalues</td>
      <td><a href="https://wg21.link/n1610">N1610</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Non-static data member initializers</td>
      <td><a href="https://wg21.link/n2756">N2756</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Variadic templates</td>
      <td><a href="https://wg21.link/n2242">N2242</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;Extending variadic template template parameters</td>
      <td><a href="https://wg21.link/n2555">N2555</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td rowspan="3">Initializer lists</td>
      <td><a href="https://wg21.link/n2672">N2672</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
      <tr> <!-- from Kona 2019-->
        <td><a href="https://wg21.link/p1009r2">P1009R2</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 9</td>
      </tr>
      <tr> <!-- from Prague-->
        <td><a href="https://wg21.link/p1957r2">P1957R2</a> (<a href="#dr">DR</a>)</td>
        <td class="unreleased" align="center">Clang 11</td>
      </tr>
    <tr>
      <td>Static assertions</td>
      <td><a href="https://wg21.link/n1720">N1720</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td><code>auto</code>-typed variables</td>
      <td><a href="https://wg21.link/n1984">N1984</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;Multi-declarator <code>auto</code></td>
      <td><a href="https://wg21.link/n1737">N1737</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;Removal of auto as a storage-class specifier</td>
      <td><a href="https://wg21.link/n2546">N2546</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;New function declarator syntax</td>
      <td><a href="https://wg21.link/n2541">N2541</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td rowspan="2">Lambda expressions</td>
      <td><a href="https://wg21.link/n2927">N2927</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
      <tr>
        <!-- from Albuquerque 2017 -->
        <td><a href="https://wg21.link/p0588r1">P0588R1</a> (<a href="#dr">DR</a>)</td>
        <td class="none" align="center">No</td>
      </tr>
    <tr>
      <td>Declared type of an expression</td>
      <td><a href="https://wg21.link/n2343">N2343</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>&nbsp;&nbsp;&nbsp;&nbsp;Incomplete return types</td>
      <td><a href="https://wg21.link/n3276">N3276</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Right angle brackets</td>
      <td><a href="https://wg21.link/n1757">N1757</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Default template arguments for function templates</td>
      <td><a href="https://wg21.link/cwg226">DR226</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Solving the SFINAE problem for expressions</td>
      <td><a href="https://wg21.link/n2634">DR339</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Alias templates</td>
      <td><a href="https://wg21.link/n2258">N2258</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Extern templates</td>
      <td><a href="https://wg21.link/n1987">N1987</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Null pointer constant</td>
      <td><a href="https://wg21.link/n2431">N2431</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Strongly-typed enums</td>
      <td><a href="https://wg21.link/n2347">N2347</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Forward declarations for enums</td>
      <td><a href="https://wg21.link/n2764">N2764</a>
      <br><a href="https://wg21.link/cwg1206">DR1206</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Standardized attribute syntax</td>
      <td><a href="https://wg21.link/n2761">N2761</a></td>
      <td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td>
    </tr>
    <tr>
      <td rowspan="2">Generalized constant expressions</td>
      <td><a href="https://wg21.link/n2235">N2235</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
      <tr>
        <!-- from Albuquerque 2017 -->
        <td><a href="https://wg21.link/p0859r0">P0859R0</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 8</td>
      </tr>
    <tr>
      <td>Alignment support</td>
      <td><a href="https://wg21.link/n2341">N2341</a></td>
      <td class="full" align="center">Clang 3.3</td>
    </tr>
    <tr>
      <td>Conditionally-support behavior</td>
      <td><a href="https://wg21.link/n1627">N1627</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Changing undefined behavior into diagnosable errors</td>
      <td><a href="https://wg21.link/n1727">N1727</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Delegating constructors</td>
      <td><a href="https://wg21.link/n1986">N1986</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td rowspan="2">Inheriting constructors</td>
      <td><a href="https://wg21.link/n2540">N2540</a></td>
      <td class="full" align="center">Clang 3.3</td>
    </tr>
      <tr>
        <!-- from Kona 2015 -->
        <td><a href="https://wg21.link/p0136r1">P0136R1</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 3.9</td>
      </tr>
    <tr>
      <td>Explicit conversion operators</td>
      <td><a href="https://wg21.link/n2437">N2437</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>New character types</td>
      <td><a href="https://wg21.link/n2249">N2249</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Unicode string literals</td>
      <td><a href="https://wg21.link/n2442">N2442</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Raw string literals</td>
      <td><a href="https://wg21.link/n2442">N2442</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Universal character names in literals</td>
      <td><a href="https://wg21.link/n2170">N2170</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>User-defined literals</td>
      <td><a href="https://wg21.link/n2765">N2765</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Standard Layout Types</td>
      <td><a href="https://wg21.link/n2342">N2342</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td rowspan="2">Defaulted functions</td>
      <td><a href="https://wg21.link/n2346">N2346</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
      <tr> <!-- from Kona 2019-->
        <td><a href="https://wg21.link/p1286r2">P1286R2</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 9</td>
      </tr>
    <tr>
      <td>Deleted functions</td>
      <td><a href="https://wg21.link/n2346">N2346</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Extended friend declarations</td>
      <td><a href="https://wg21.link/n1791">N1791</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Extending <code>sizeof</code></td>
      <td><a href="https://wg21.link/n2253">N2253</a>
      <br><a href="https://wg21.link/cwg850">DR850</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Inline namespaces</td>
      <td><a href="https://wg21.link/n2535">N2535</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Unrestricted unions</td>
      <td><a href="https://wg21.link/n2544">N2544</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Local and unnamed types as template arguments</td>
      <td><a href="https://wg21.link/n2657">N2657</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td rowspan="2">Range-based for</td>
      <td><a href="https://wg21.link/n2930">N2930</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
      <tr>
        <!-- from Jacksonville 2018 -->
        <td><a href="https://wg21.link/p0962r1">P0962R1</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 8</td>
      </tr>
    <tr>
      <td>Explicit virtual overrides</td>
      <td><a href="https://wg21.link/n2928">N2928</a>
      <br><a href="https://wg21.link/n3206">N3206</a>
      <br><a href="https://wg21.link/n3272">N3272</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Minimal support for garbage collection and reachability-based leak detection</td>
      <td><a href="https://wg21.link/n2670">N2670</a></td>
      <td class="na" align="center">N/A <a href="#n2670">(2)</a></td>
    </tr>
    <tr>
      <td>Allowing move constructors to throw [noexcept]</td>
      <td><a href="https://wg21.link/n3050">N3050</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>
    <tr>
      <td>Defining move special member functions</td>
      <td><a href="https://wg21.link/n3053">N3053</a></td>
      <td class="full" align="center">Clang 3.0</td>
    </tr>

    <tr class="separator">
      <th align="center" colspan="3">Concurrency</th>
    </tr>
    <tr>
      <td>Sequence points</td>
      <td><a href="https://wg21.link/n2239">N2239</a></td>
      <td class="full" align="center">Clang 3.3</td>
    </tr>
    <tr>
      <td>Atomic operations</td>
      <td><a href="https://wg21.link/n2427">N2427</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Strong Compare and Exchange</td>
      <td><a href="https://wg21.link/n2748">N2748</a></td>
      <td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td>
    </tr>
    <tr>
      <td>Bidirectional Fences</td>
      <td><a href="https://wg21.link/n2752">N2752</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>

    <tr>
      <td>Memory model</td>
      <td><a href="https://wg21.link/n2429">N2429</a></td>
      <td class="full" align="center">Clang 3.2</td>
    </tr>
    <tr>
      <td>Data-dependency ordering: atomics and memory model</td>
      <td><a href="https://wg21.link/n2664">N2664</a></td>
      <td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td>
    </tr>
    <tr>
      <td>Propagating exceptions</td>
      <td><a href="https://wg21.link/n2179">N2179</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Allow atomics use in signal handlers</td>
      <td><a href="https://wg21.link/n2547">N2547</a></td>
      <td class="full" align="center">Clang 3.1</td>
    </tr>
    <tr>
      <td>Thread-local storage</td>
      <td><a href="https://wg21.link/n2659">N2659</a></td>
      <td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td>
    </tr>
    <tr>
      <td>Dynamic initialization and destruction with concurrency</td>
      <td><a href="https://wg21.link/n2660">N2660</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>

    <tr class="separator">
      <th align="center" colspan="3">C99 Features in C++11</th>
    </tr>
    <tr>
      <td><code>__func__</code> predefined identifier</td>
      <td><a href="https://wg21.link/n2340">N2340</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>C99 preprocessor</td>
      <td><a href="https://wg21.link/n1653">N1653</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td><code>long long</code></td>
      <td><a href="https://wg21.link/n1811">N1811</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>Extended integral types</td>
      <td><a href="https://wg21.link/n1988">N1988</a></td>
      <td class="na" align="center">N/A <a href="#n1988">(6)</a></td>
    </tr>
</table>

<p>
<span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute
has no effect.</span><br>
<span id="n2670">(2): No compiler changes are required for an implementation
such as Clang that does not provide garbage collection.</span><br>
<span id="n2748">(3): All compare-exchange operations are emitted as
strong compare-exchanges.</span><br>
<span id="n2664">(4): <code>memory_order_consume</code> is lowered to
<code>memory_order_acquire</code>.</span><br>
<span id="n2659">(5): <code>thread_local</code> support
requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such
as <a href="https://libcxxabi.llvm.org">libc++abi</a> 3.6 or later,
or libsupc++ 4.8 or later.</span><br>
<span id="n1988">(6): No compiler changes are required for an implementation
such as Clang that does not provide any extended integer types.
<code>__int128</code> is not treated as an extended integer type,
because changing <code>intmax_t</code> would be an ABI-incompatible
change.</span>
</p>
</details>

<h2 id="cxx14">C++14 implementation status</h2>

<p>Clang 3.4 and later implement all of the <a
    href="https://www.iso.org/standard/64029.html">ISO
    C++ 2014 standard</a>.

<p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option
(use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p>

<details>
<summary>List of features and minimum Clang version with support</summary>

<table width="689" border="1" cellspacing="0">
 <tr>
    <th>Language Feature</th>
    <th>C++14 Proposal</th>
    <th>Available in Clang?</th>
 </tr>
    <tr>
      <td>Tweak to certain C++ contextual conversions</td>
      <td><a href="https://wg21.link/n3323">N3323</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Binary literals</td>
      <td><a href="https://wg21.link/n3472">N3472</a></td>
      <td class="full" align="center">Clang 2.9</td>
    </tr>
    <tr>
      <td>decltype(auto)</td>
      <td rowspan=2 style="vertical-align:middle"><a href="https://wg21.link/n3638">N3638</a></td>
      <td class="full" align="center">Clang 3.3</td>
    </tr>
    <tr>
      <td>Return type deduction for normal functions</td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Initialized lambda captures</td>
      <td><a href="https://wg21.link/n3648">N3648</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Generic lambdas</td>
      <td><a href="https://wg21.link/n3649">N3649</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Variable templates</td>
      <td><a href="https://wg21.link/n3651">N3651</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Relaxing requirements on constexpr functions</td>
      <td><a href="https://wg21.link/n3652">N3652</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Member initializers and aggregates</td>
      <td><a href="https://wg21.link/n3653">N3653</a></td>
      <td class="full" align="center">Clang 3.3</td>
    </tr>
    <tr>
      <td>Clarifying memory allocation</td>
      <td><a href="https://wg21.link/n3664">N3664</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td><tt>[[deprecated]]</tt> attribute</td>
      <td><a href="https://wg21.link/n3760">N3760</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>Single quotation mark as digit separator</td>
      <td><a href="https://wg21.link/n3781">N3781</a></td>
      <td class="full" align="center">Clang 3.4</td>
    </tr>
    <tr>
      <td>C++ Sized Deallocation</td>
      <td><a href="https://wg21.link/n3778">N3778</a></td>
      <td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td>
    </tr>
</table>

<p>
<span id="n3778">(7): In Clang 3.7 and later, sized deallocation is only enabled
if the user passes the <code>-fsized-deallocation</code> flag. The user must
supply definitions of the sized deallocation functions, either by providing them
explicitly or by using a C++ standard library that does. <code>libstdc++</code>
added these functions in version 5.0, and <code>libc++</code> added them in
version 3.7.
</span>
</p>
</details>

<h2 id="cxx17">C++17 implementation status</h2>

<p>Clang 5 and later implement all the features of the
<a href="https://www.iso.org/standard/68564.html">ISO C++ 2017 standard</a>.

<p>You can use Clang in C++17 mode with the <code>-std=c++17</code> option
(use <code>-std=c++1z</code> in Clang 4 and earlier).</p>

<details open>
<summary>List of features and minimum Clang version with support</summary>

<table width="689" border="1" cellspacing="0">
 <tr>
    <th>Language Feature</th>
    <th>C++17 Proposal</th>
    <th>Available in Clang?</th>
 </tr>
    <!-- Issaquah 2014 papers -->
    <tr>
      <td><tt>static_assert</tt> with no message</td>
      <td><a href="https://wg21.link/n3928">N3928</a></td>
      <td class="full" align="center">Clang 3.5</td>
    </tr>
    <!-- Rapperswil papers -->
    <tr>
      <td>Disabling trigraph expansion by default</td>
      <td><a href="https://wg21.link/n4086">N4086</a></td>
      <td class="full" align="center">Clang 3.5</td>
    </tr>
    <tr>
      <td><tt>typename</tt> in a template template parameter</td>
      <td><a href="https://wg21.link/n4051">N4051</a></td>
      <td class="full" align="center">Clang 3.5</td>
    </tr>
    <tr>
      <td>New <tt>auto</tt> rules for direct-list-initialization
      <td><a href="https://wg21.link/n3922">N3922</a></td>
      <td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td>
    </tr>
    <!-- Urbana papers -->
    <tr>
      <td rowspan="2">Fold expressions</td>
      <td><a href="https://wg21.link/n4295">N4295</a></td>
      <td class="full" align="center">Clang 3.6</td>
    </tr>
      <tr> <!-- from Jacksonville -->
        <td><a href="https://wg21.link/p0036r0">P0036R0</a></td>
        <td class="full" align="center">Clang 3.9</td>
      </tr>
    <tr>
      <td><tt>u8</tt> character literals</td>
      <td><a href="https://wg21.link/n4267">N4267</a></td>
      <td class="full" align="center">Clang 3.6</td>
    </tr>
    <tr>
      <td>Nested namespace definition</td>
      <td><a href="https://wg21.link/n4230">N4230</a></td>
      <td class="full" align="center">Clang 3.6</td>
    </tr>
    <tr>
      <td>Attributes for namespaces and enumerators</td>
      <td><a href="https://wg21.link/n4266">N4266</a></td>
      <td class="full" align="center">Clang 3.6</td>
    </tr>
    <tr>
      <td>Allow constant evaluation for all non-type template arguments</td>
      <td><a href="https://wg21.link/n4268">N4268</a></td>
      <td class="full" align="center">Clang 3.6</td>
    </tr>
    <!-- Kona papers -->
    <tr>
      <td>Remove deprecated <tt>register</tt> storage class</td>
      <td><a href="https://wg21.link/p0001r1">P0001R1</a></td>
      <td class="full" align="center">Clang 3.8</td>
    </tr>
    <tr>
      <td>Remove deprecated <tt>bool</tt> increment</td>
      <td><a href="https://wg21.link/p0002r1">P0002R1</a></td>
      <td class="full" align="center">Clang 3.8</td>
    </tr>
    <tr>
      <td>Make exception specifications part of the type system</td>
      <td><a href="https://wg21.link/p0012r1">P0012R1</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
    <tr>
      <td><tt>__has_include</tt> in preprocessor conditionals</td>
      <td><a href="https://wg21.link/p0061r1">P0061R1</a></td>
      <td class="full" align="center">Yes</td>
    </tr>
    <!-- Jacksonville papers -->
    <tr>
      <td><tt>[[fallthrough]]</tt> attribute</td>
      <td><a href="https://wg21.link/p0188r1">P0188R1</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td rowspan="2"><tt>[[nodiscard]]</tt> attribute</td>
      <td><a href="https://wg21.link/p0189r1">P0189R1</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
      <tr> <!-- from Cologne 2019 -->
        <td><a href="https://wg21.link/p1771r1">P1771R1</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 9</td>
      </tr>
    <tr>
      <td><tt>[[maybe_unused]]</tt> attribute</td>
      <td><a href="https://wg21.link/p0212r1">P0212R1</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Aggregate initialization of classes with base classes</td>
      <td><a href="https://wg21.link/p0017r1">P0017R1</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td><tt>constexpr</tt> lambda expressions</td>
      <td><a href="https://wg21.link/p0170r1">P0170R1</a></td>
      <td class="full" align="center">Clang 5</td>
    </tr>
    <tr>
      <td>Differing <tt>begin</tt> and <tt>end</tt> types in range-based <tt>for</tt></td>
      <td><a href="https://wg21.link/p0184r0">P0184R0</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Lambda capture of <tt>*this</tt></td>
      <td><a href="https://wg21.link/p0018r3">P0018R3</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Direct-list-initialization of <tt>enum</tt>s</td>
      <td><a href="https://wg21.link/p0138r2">P0138R2</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Hexadecimal floating-point literals</td>
      <td><a href="https://wg21.link/p0245r1">P0245R1</a></td>
      <td class="full" align="center">Yes</td>
    </tr>
    <!-- Oulu papers -->
    <tr>
      <td>Using attribute namespaces without repetition</td>
      <td><a href="https://wg21.link/p0028r4">P0028R4</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Dynamic memory allocation for over-aligned data</td>
      <td><a href="https://wg21.link/p0035r4">P0035R4</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
    <tr>
      <td rowspan="4">Template argument deduction for class templates</td>
      <td><a href="https://wg21.link/p0091r3">P0091R3</a></td>
      <td rowspan="2" class="full" align="center">Clang 5</td>
    </tr>
      <tr> <!-- from Issaquah -->
        <td><a href="https://wg21.link/p0512r0">P0512R0</a></td>
      </tr>
      <tr>
        <!-- from Kona 2017 -->
        <td><a href="https://wg21.link/p0620r1">P0620R0</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 7</td>
      </tr>
      <tr>
        <!-- from Toronto 2017 -->
        <td><a href="https://wg21.link/p0702r1">P0702R1</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 6</td>
      </tr>
    <tr>
      <td>Non-type template parameters with <tt>auto</tt> type</td>
      <td><a href="https://wg21.link/p0127r2">P0127R2</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
    <tr>
      <td>Guaranteed copy elision</td>
      <td><a href="https://wg21.link/p0135r1">P0135R1</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
    <tr>
      <td rowspan=2>Stricter expression evaluation order</td>
      <td><a href="https://wg21.link/p0145r3">P0145R3</a></td>
      <td class="full" align="center" rowspan=2>Clang 4 <a href="#p0145">(9)</a></td>
    </tr>
    <tr>
      <td><a href="https://wg21.link/p0400r0">P0400R0</a></td>
    </tr>
    <tr>
      <td>Requirement to ignore unknown attributes</td>
      <td><a href="https://wg21.link/p0283r2">P0283R2</a></td>
      <td class="full" align="center">Yes</td>
    </tr>
    <tr>
      <td><tt>constexpr</tt> <em>if-statement</em>s</td>
      <td><a href="https://wg21.link/p0292r2">P0292R2</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td>Inline variables</td>
      <td><a href="https://wg21.link/p0386r2">P0386R2</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <tr>
      <td rowspan="3">Structured bindings</td>
      <td><a href="https://wg21.link/p0217r3">P0217R3</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
      <tr>
        <!-- from Jacksonville 2018 -->
        <td><a href="https://wg21.link/p0961r1">P0961R1</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 8</td>
      </tr>
      <tr>
        <!-- from Jacksonville 2018 -->
        <td><a href="https://wg21.link/p0969r0">P0969R0</a> (<a href="#dr">DR</a>)</td>
        <td class="full" align="center">Clang 8</td>
      </tr>
    <tr>
      <td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td>
      <td><a href="https://wg21.link/p0305r1">P0305R1</a></td>
      <td class="full" align="center">Clang 3.9</td>
    </tr>
    <!-- Issaquah 2016 papers -->
    <tr>
      <td>Matching template template parameters to compatible arguments</td>
      <td><a href="https://wg21.link/p0522r0">P0522R0</a></td>
      <td class="partial" align="center">Partial <a href="#p0522">(10)</a></td>
    </tr>
    <tr>
      <td>Removing deprecated dynamic exception specifications</td>
      <td><a href="https://wg21.link/p0003r5">P0003R5</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
    <tr>
      <td>Pack expansions in <em>using-declarations</em></td>
      <td><a href="https://wg21.link/p0195r2">P0195R2</a></td>
      <td class="full" align="center">Clang 4</td>
    </tr>
</table>

<p>
<span id="n3922">(8): This is a backwards-incompatible change that is applied to
all language versions that allow type deduction from <tt>auto</tt>
(per the request of the C++ committee).
In Clang 3.7, a warning is emitted for all cases that would change meaning.
</span><br>
<span id="p0145">(9): Under the MS ABI, function parameters are destroyed from
left to right in the callee. As a result, function parameters in calls to
<tt>operator&lt;&lt;</tt>, <tt>operator&gt;&gt;</tt>, <tt>operator-&gt;*</tt>,
<tt>operator&amp;&amp;</tt>, <tt>operator||</tt>, and <tt>operator,</tt>
functions using expression syntax are no longer guaranteed to be destroyed in
reverse construction order in that ABI.
</span><br>
<span id="p0522">(10): Despite being the resolution to a Defect Report, this
feature is disabled by default in all language versions, and can be enabled
explicitly with the flag <tt>-frelaxed-template-template-args</tt> in Clang 4
onwards.
The change to the standard lacks a corresponding change for template partial
ordering, resulting in ambiguity errors for reasonable and previously-valid
code. This issue is expected to be rectified soon.
</span>
</p>
</details>

<h2 id="cxx20">C++20 implementation status</h2>

<p>Clang has support for some of the features of the
ISO C++ 2020 Draft International Standard.

<p>You can use Clang in C++20 mode with the <code>-std=c++20</code> option
(use <code>-std=c++2a</code> in Clang 9 and earlier).</p>

<details open>
<summary>List of features and minimum Clang version with support</summary>

<table width="689" border="1" cellspacing="0">
 <tr>
    <th>Language Feature</th>
    <th>C++20 Proposal</th>
    <th>Available in Clang?</th>
 </tr>
    <!-- Toronto 2017 papers -->
    <tr>
      <td>Default member initializers for bit-fields</td>
      <td><a href="https://wg21.link/p0683r1">P0683R1</a></td>
      <td class="full" align="center">Clang 6</td>
    </tr>
    <tr>
      <td><tt>const&amp;</tt>-qualified pointers to members</td>
      <td><a href="https://wg21.link/p0704r1">P0704R1</a></td>
      <td class="full" align="center">Clang 6</td>
    </tr>
    <tr>
      <td>Allow <i>lambda-capture</i> <tt>[=, this]</tt></td>
      <td><a href="https://wg21.link/p0409r2">P0409R2</a></td>
      <td class="full" align="center">Clang 6</td>
    </tr>
    <tr>
      <td rowspan="2"><tt>__VA_OPT__</tt> for preprocessor comma elision</td>
      <td><a href="https://wg21.link/p0306r4">P0306R4</a></td>
      <td class="full" align="center">Clang 6</td>
    </tr>
      <tr> <!-- from Rapperswil -->
        <td><a href="https://wg21.link/p1042r1">P1042R1</a></td>
        <td class="full" align="center">Clang 9</td>
      </tr>
    <tr>
      <td>Designated initializers</td>
      <td><a href="https://wg21.link/p0329r4">P0329R4</a></td>
      <td class="full" align="center">Clang 10</td>
    </tr>
    <tr>
      <td><i>template-parameter-list</i> for generic lambdas</td>
      <td><a href="https://wg21.link/p0428r2">P0428R2</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr id="p0734">
      <td rowspan="12">Concepts</td>
      <td><a href="https://wg21.link/p0734r0">P0734R0</a></td>
      <td rowspan="4" class="full" align="center">Clang 10</td>
    </tr>
      <tr> <!-- from Albuquerque -->
        <td><a href="https://wg21.link/p0857r0">P0857R0</a></td>
      </tr>
      <tr> <!-- from San Diego -->
        <td><a href="https://wg21.link/p1084r2">P1084R2</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1141r2">P1141R2</a></td>
      </tr>
      <tr> <!-- from Cologne -->
        <td><a href="https://wg21.link/p0848r3">P0848R3</a></td>
        <td rowspan="1" class="none" align="center">No</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1616r1">P1616R1</a></td>
        <td rowspan="2" class="full" align="center">Clang 10</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1452r2">P1452R2</a></td>
      </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1972r0">P1972R0</a></td>
        <td rowspan="2" class="none" align="center">No</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1980r0">P1980R0</a></td>
      </tr>
      <tr> <!-- from Prague -->
        <td><a href="https://wg21.link/p2103r0">P2103R0</a></td>
        <td rowspan="3" class="none" align="center">No</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p2092r0">P2092R0</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p2113r0">P2113R0</a></td>
      </tr>
    <!-- Albuquerque papers -->
    <tr>
      <td>Range-based for statements with initializer</td>
      <td><a href="https://wg21.link/p0614r1">P0614R1</a></td>
      <td class="full" align="center">Clang 8</td>
    </tr>
    <tr>
      <td>ADL and function templates that are not visible</td>
      <td><a href="https://wg21.link/p0846r0">P0846R0</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td><tt>const</tt> mismatch with defaulted copy constructor</td>
      <td><a href="https://wg21.link/p0641r2">P0641R2</a></td>
      <td class="full" align="center">Clang 8</td>
    </tr>
    <tr>
      <td rowspan="10">Consistent comparison (<tt>operator&lt;=&gt;</tt>)</td>
      <td><a href="https://wg21.link/p0515r3">P0515R3</a></td>
      <td rowspan="8" class="full" align="center">Clang 10</td>
    </tr>
      <tr> <!-- from Jacksonville -->
        <td><a href="https://wg21.link/p0905r1">P0905R1</a></td>
      </tr>
      <tr> <!-- from Rapperswil -->
        <td><a href="https://wg21.link/p1120r0">P1120R0</a></td>
      </tr>
      <tr> <!-- from Kona 2019 -->
        <td><a href="https://wg21.link/p1185r2">P1185R2</a></td>
      </tr>
      <tr> <!-- from Cologne -->
        <td><a href="https://wg21.link/p1186r3">P1186R3</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1630r1">P1630R1</a></td>
      </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1946r0">P1946R0</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1959r0">P1959R0</a></td>
      </tr>
      <tr> <!-- from Prague -->
        <td><a href="https://wg21.link/p2002r1">P2002R1</a></td>
        <td class="partial" align="center">Partial</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p2085r0">P2085R0</a></td>
        <td class="none" align="center">No</td>
      </tr>
    <tr>
      <td>Access checking on specializations</td>
      <td><a href="https://wg21.link/p0692r1">P0692R1</a></td>
      <td class="partial" align="center">Partial</td>
    </tr>
    <tr>
      <td>Default constructible and assignable stateless lambdas</td>
      <td><a href="https://wg21.link/p0624r2">P0624R2</a></td>
      <td class="full" align="center">Clang 8</td>
    </tr>
    <tr>
      <td>Lambdas in unevaluated contexts</td>
      <td><a href="https://wg21.link/p0315r4">P0315R4</a></td>
      <td class="none" align="center">No</td>
    </tr>
    <!-- Jacksonville papers -->
    <tr>
      <td><tt>[[no_unique_address]]</tt> attribute</td>
      <td><a href="https://wg21.link/p0840r2">P0840R2</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td><tt>[[likely]]</tt> and <tt>[[unlikely]]</tt> attributes</td>
      <td><a href="https://wg21.link/p0479r5">P0479R5</a></td>
      <td class="none" align="center">Clang 12 (partial)</td>
    </tr>
    <tr>
      <td><tt>typename</tt> optional in more contexts</td>
      <td><a href="https://wg21.link/p0634r3">P0634R3</a></td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td>Pack expansion in lambda <i>init-capture</i></td>
      <td><a href="https://wg21.link/p0780r2">P0780R2</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <!-- Rapperswil papers -->
    <tr>
      <td rowspan="2">Class types as non-type template parameters</td>
      <td><a href="https://wg21.link/p0732r2">P0732R2</a></td>
      <td rowspan="2" class="none" align="center">No</td>
    </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1907r1">P1907R1</a></td>
      </tr>
    <tr>
      <td>Destroying operator delete</td>
      <td><a href="https://wg21.link/p0722r3">P0722R3</a></td>
      <td class="full" align="center">Clang 6</td>
    </tr>
    <tr>
      <td rowspan="7">Relaxations of <tt>constexpr</tt> restrictions</td>
      <td><a href="https://wg21.link/p1064r0">P1064R0</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
      <tr> <!-- from San Diego -->
        <td><a href="https://wg21.link/p1002r1">P1002R1</a></td>
        <td class="full" align="center">Clang 8</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1327r1">P1327R1</a></td>
        <td rowspan="2" class="full" align="center">Clang 9</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1330r0">P1330R0</a></td>
      </tr>
      <tr> <!-- from Cologne -->
        <td><a href="https://wg21.link/p1331r2">P1331R2</a></td>
        <td rowspan="3" class="full" align="center">Clang 10</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1668r1">P1668R1</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p0784r7">P0784R7</a></td>
      </tr>
    <tr>
      <td>Prohibit aggregates with user-declared constructors</td>
      <td><a href="https://wg21.link/p1008r1">P1008R1</a></td>
      <td class="full" align="center">Clang 8</td>
    </tr>
    <tr>
      <td>Feature test macros</td>
      <td><a href="https://wg21.link/p0941r2">P0941R2</a></td>
      <td class="full" align="center"><a href="#sd6">(see below)</a></td>
    </tr>
    <tr>
      <td><tt>explicit(bool)</tt></td>
      <td><a href="https://wg21.link/p0892r2">P0892R2</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <!-- San Diego papers -->
    <tr>
      <td>Signed integers are two's complement</td>
      <td><a href="https://wg21.link/p1236r1">P1236R1</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td><tt>char8_t</tt></td>
      <td><a href="https://wg21.link/p0482r6">P0482R6</a></td>
      <td class="full" align="center">Clang 7 <a href="#p0482">(11)</a></td>
    </tr>
    <tr>
      <td rowspan=2>Immediate functions (<tt>consteval</tt>)</td>
      <td><a href="https://wg21.link/p1073r3">P1073R3</a></td>
      <td rowspan=2 class="none" align="center">No</td>
    </tr>
      <tr> <!-- from Prague -->
        <td><a href="https://wg21.link/p1937r2">P1937R2</a></td>
      </tr>
    <tr>
      <td><tt>std::is_constant_evaluated</tt></td>
      <td><a href="https://wg21.link/p0595r2">P0595R2</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td>Nested inline namespaces</td>
      <td><a href="https://wg21.link/p1094r2">P1094R2</a></td>
      <td class="full" align="center">Clang 8</td>
    </tr>
    <!-- Kona 2019 papers -->
    <tr>
      <td rowspan="2">Structured binding extensions</td>
      <td><a href="https://wg21.link/p1091r3">P1091R3</a></td>
      <td rowspan="2" class="partial" align="center">Partial</td>
    </tr>
      <tr>
        <td><a href="https://wg21.link/p1381r1">P1381R1</a></td>
      </tr>
    <tr>
      <td rowspan="2">Stronger Unicode requirements</td>
      <td><a href="https://wg21.link/p1041r4">P1041R4</a></td>
      <td rowspan="2" class="full" align="center">Yes</td>
    </tr>
      <tr>
        <td><a href="https://wg21.link/p1139r2">P1139R2</a></td>
      </tr>
    <tr>
      <td rowspan="2">Parenthesized initialization of aggregates</td>
      <td><a href="https://wg21.link/p0960r3">P0960R3</a></td>
      <td rowspan="2" class="none" align="center">No</td>
    </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1975r0">P1975R0</a></td>
      </tr>
    <tr>
      <td rowspan="10">Modules</td>
      <td><a href="https://wg21.link/p1103r3">P1103R3</a></td>
      <td class="partial" align="center">Partial</td>
    </tr>
      <tr> <!-- from Cologne -->
        <td><a href="https://wg21.link/p1766r1">P1766R1</a> (<a href="#dr">DR</a>)</td>
        <td class="unreleased" align="center">Clang 11</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1811r0">P1811R0</a></td>
        <td rowspan="2" class="none" align="center">No</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1703r1">P1703R1</a></td>
      </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1874r1">P1874R1</a></td>
        <td class="partial" align="center">Partial</td>
      </tr>
      <tr> <!-- from Belfast -->
        <td><a href="https://wg21.link/p1979r0">P1979R0</a></td>
        <td rowspan="3" class="none" align="center">No</td>
      </tr>
      <tr> <!-- from Prague -->
        <td><a href="https://wg21.link/p1779r3">P1779R3</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1857r3">P1857R3</a></td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p2115r0">P2115R0</a></td>
        <td class="partial" align="center">Partial</td>
      </tr>
      <tr>
        <td><a href="https://wg21.link/p1815r2">P1815R2</a></td>
        <td class="none" align="center">No</td>
      </tr>
    <tr>
      <td>Coroutines</td>
      <td><a href="https://wg21.link/p0912r5">P0912R5</a></td>
      <td class="partial" align="center">Partial</td>
    </tr>
    <!-- Cologne 2019 papers -->
    <tr>
      <td>Deprecate <tt>a[b,c]</tt></td>
      <td><a href="https://wg21.link/p1161r3">P1161R3</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td>Deprecate some problematic uses of <tt>volatile</tt></td>
      <td><a href="https://wg21.link/p1152r4">P1152R4</a></td>
      <td class="full" align="center">Clang 10</td>
    </tr>
    <tr>
      <td><tt>[[nodiscard("with reason")]]</tt></td>
      <td><a href="https://wg21.link/p1301r4">P1301R4</a></td>
      <td class="full" align="center">Clang 9</td>
    </tr>
    <tr>
      <td><tt>using enum</tt></td>
      <td><a href="https://wg21.link/p1099r5">P1099R5</a></td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td rowspan=2>Class template argument deduction for aggregates</td>
      <td><a href="https://wg21.link/p1816r0">P1816R0</a></td>
      <td rowspan=2 class="none" align="center">No</td>
    </tr>
      <tr> <!-- from Prague -->
        <td><a href="https://wg21.link/p2082r1">P2082R1</a></td>
      </tr>
    <tr>
      <td>Class template argument deduction for alias templates</td>
      <td><a href="https://wg21.link/p1814r0">P1814R0</a></td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td>Permit conversions to arrays of unknown bound</td>
      <td><a href="https://wg21.link/p0388r4">P0388R4</a></td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td><tt>constinit</tt></td>
      <td><a href="https://wg21.link/p1143r2">P1143R2</a></td>
      <td class="full" align="center">Clang 10</td>
    </tr>
    <!-- Prague 2019 papers -->
    <tr>
      <td>Pseudo-destructors end object lifetimes</td>
      <td><a href="https://wg21.link/p0593r6">P0593R6</a> (<a href="#dr">DR</a>)</td>
      <td class="unreleased" align="center">Clang 11</td>
    </tr>
</table>

<p>
<span id="p0482">(11): Prior to Clang 8, this feature is not enabled by
<tt>-std=c++20</tt>, but can be enabled with <tt>-fchar8_t</tt>.
</span>
</p>
</details>

<h2 id="dr">Defect reports</h2>

<p>Clang generally aims to implement resolutions to Defect Reports (bug fixes
against prior standards) retroactively, in all prior standard versions where
the fix is meaningful. Significant Defect Report changes to language features
after the publication of the relevant standard are marked (DR) in the above
table.</p>

<p>Clang also has a test suite for conformance to resolutions for issues on the
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_toc.html">C++ core issues list</a>,
most of which are considered Defect Reports.
<a href="cxx_dr_status.html">Implementation status for C++ core issues</a> based on
that test suite is tracked on a separate page.</p>

<h2 id="ts">Technical specifications and standing documents</h2>

<p>ISO C++ also publishes a number of documents describing additional language
and library features that are not part of standard C++.</p>

<details open>
<summary>List of features and minimum Clang version with support</summary>

<table width="689" border="1" cellspacing="0">
 <tr>
    <th>Document</th>
    <th>Latest draft</th>
    <th>Compiler flag</th>
    <th>Available in Clang?</th>
 </tr>
    <tr id="sd6">
      <td rowspan="7">SD-6: SG10 feature test recommendations</td>
      <td rowspan="7"><a href="https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations">SD-6</a></td>
      <td rowspan="7">N/A</td>
      <td class="full" align="center">
        Clang 3.4 (<a href="https://wg21.link/n3745">N3745</a>)</br>
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 3.6 (<a href="https://wg21.link/n4200">N4200</a>)</a>
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 4 (<a href="https://wg21.link/p0096r3">P0096R3</a>)</a>
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 5 (<a href="https://wg21.link/p0096r4">P0096R4</a>)</a>
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 7 (<a href="https://wg21.link/p0096r5">P0096R5</a>)</a>
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 9 (<a href="https://wg21.link/p1353r0">P1353R0</a>)
      </td>
    </tr>
    <tr>
      <td class="full" align="center">
        Clang 10 (<a href="https://wg21.link/p1902r1">P1902R1</a>)</a>
      </td>
    </tr>
    <!-- No compiler support is known to be needed for:
           * Concurrency TS
           * Parallelism TS (v1, v2)
           * Ranges TS
           * Networking TS
           * File System TS
    -->
    <tr>
      <td>[TS] Concepts</td>
      <td><a href="https://wg21.link/p0121r0">P0121R0</a></td>
      <td></td>
      <td class="na" align="center">Superseded by <a href="#p0734">P0734R0</a></td>
    </tr>
    <tr>
      <!-- track unimplemented Coroutines features: p0913r1 p0914r1 p1356r0 -->
      <td rowspan="2">[TS] Coroutines</td>
      <td rowspan="2"><a href="https://isocpp.org/files/papers/N4663.pdf">N4663</a></td>
      <td><tt>-fcoroutines-ts<br>-stdlib=libc++</tt></td>
      <td class="full" align="center">Clang 5</td>
    </tr>
    <tr>
      <td><tt>-std=c++20<br>-stdlib=libc++</tt></td>
      <td class="na" align="center">Superseded by <a href="#p0912">P0912R5</a></td>
    </tr>
    <tr>
      <td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td>
      <td><a href="https://wg21.link/n4480">N4480</a></td>
      <td>N/A</td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td>[TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td>
     <td><a href="https://wg21.link/n4617">N4617</a></td>
      <td>N/A</td>
      <td class="full" align="center">Clang 9 (<a href="docs/LanguageExtensions.html#source-location-builtins">documentation</a>)</td>
    </tr>
    <tr>
      <td>[TS] Modules</td>
      <td><a href="https://wg21.link/n4720">N4720</a></td>
      <td><tt>-fmodules-ts</tt></td>
      <td class="na" align="center">Superseded by <a href="#p1103">P1103R3</a></td>
    </tr>
    <tr>
      <td>[DRAFT TS] Reflection</td>
      <td><a href="https://wg21.link/n4818">N4818</a></td>
      <td></td>
      <td class="none" align="center">No</td>
    </tr>
    <tr>
      <td>[TS] Transactional Memory</td>
      <td><a href="https://wg21.link/n4514">N4514</a></td>
      <td></td>
      <td class="none" align="center">No</td>
    </tr>
</table>
</details>

</div>
</body>
</html>