2016-09-29 05:01:37 +08:00
|
|
|
<!DOCTYPE html>
|
2009-02-15 04:20:19 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2016-09-29 05:01:37 +08:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
2020-03-10 02:17:34 +08:00
|
|
|
<title>Clang - C++20, C++17, C++14, C++11 and C++98 Status</title>
|
2009-02-25 23:22:45 +08:00
|
|
|
<link type="text/css" rel="stylesheet" href="menu.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="content.css">
|
2009-02-15 04:20:19 +08:00
|
|
|
<style type="text/css">
|
2011-11-02 14:29:37 +08:00
|
|
|
.none { background-color: #FFCCCC }
|
2013-05-04 15:02:10 +08:00
|
|
|
.partial { background-color: #FFE0B0 }
|
2020-01-23 06:48:56 +08:00
|
|
|
.unreleased { background-color: #FFFF99 }
|
2011-11-02 14:29:37 +08:00
|
|
|
.full { background-color: #CCFF99 }
|
2012-03-11 11:06:00 +08:00
|
|
|
.na { background-color: #DDDDDD }
|
2017-08-31 07:10:31 +08:00
|
|
|
:target { background-color: #FFFFBB; outline: #DDDD55 solid thin; }
|
2011-11-05 18:11:36 +08:00
|
|
|
th { background-color: #FFDDAA }
|
2016-07-14 08:14:59 +08:00
|
|
|
td { vertical-align: middle }
|
2017-07-06 08:29:13 +08:00
|
|
|
tt { white-space: nowrap }
|
2009-02-15 04:20:19 +08:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!--#include virtual="menu.html.incl"-->
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
<!--*************************************************************************-->
|
2014-06-21 04:33:10 +08:00
|
|
|
<h1>C++ Support in Clang</h1>
|
2009-02-15 04:20:19 +08:00
|
|
|
<!--*************************************************************************-->
|
|
|
|
|
2020-01-23 06:48:56 +08:00
|
|
|
<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.
|
2013-12-06 14:35:49 +08:00
|
|
|
|
2013-12-09 16:52:23 +08:00
|
|
|
<p>The Clang community is continually striving to improve C++ standards
|
2013-12-06 14:35:49 +08:00
|
|
|
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>
|
|
|
|
|
2018-09-22 15:41:09 +08:00
|
|
|
<p>The <a href="https://bugs.llvm.org/">LLVM bug tracker</a> contains Clang
|
2013-12-09 16:52:23 +08:00
|
|
|
C++ components that track known bugs with Clang's language conformance in
|
|
|
|
each language mode.</p>
|
|
|
|
|
2012-02-25 02:42:08 +08:00
|
|
|
<h2 id="cxx98">C++98 implementation status</h2>
|
|
|
|
|
2013-12-06 14:35:49 +08:00
|
|
|
<p>Clang implements all of the ISO C++ 1998 standard
|
2011-07-22 01:46:15 +08:00
|
|
|
(including the defects addressed in the ISO C++ 2003 standard)
|
2014-06-23 00:00:05 +08:00
|
|
|
except for <tt>export</tt> (which was removed in C++11).
|
2010-02-06 07:51:14 +08:00
|
|
|
|
2012-02-25 02:42:08 +08:00
|
|
|
<h2 id="cxx11">C++11 implementation status</h2>
|
2010-05-22 04:59:40 +08:00
|
|
|
|
2016-09-29 05:01:37 +08:00
|
|
|
<p>Clang 3.3 and later implement all of the <a
|
2019-10-24 07:42:47 +08:00
|
|
|
href="https://www.iso.org/standard/50372.html">ISO
|
2016-09-29 05:01:37 +08:00
|
|
|
C++ 2011 standard</a>.
|
2010-05-22 04:59:40 +08:00
|
|
|
|
2013-03-10 08:11:00 +08:00
|
|
|
<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
|
2019-10-24 07:42:47 +08:00
|
|
|
with <a href="https://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.
|
2011-03-30 06:27:50 +08:00
|
|
|
|
2016-09-29 05:01:37 +08:00
|
|
|
<details>
|
|
|
|
<summary>List of features and minimum Clang version with support</summary>
|
|
|
|
|
2009-02-15 04:20:19 +08:00
|
|
|
<table width="689" border="1" cellspacing="0">
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
2011-11-05 18:11:36 +08:00
|
|
|
<th>Language Feature</th>
|
2012-02-25 02:42:08 +08:00
|
|
|
<th>C++11 Proposal</th>
|
2011-11-05 18:11:36 +08:00
|
|
|
<th>Available in Clang?</th>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td rowspan="2">Rvalue references</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2118">N2118</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr> <!-- from Kona 2019-->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1825r0">P1825R0</a> (<a href="#dr">DR</a>)</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> Rvalue references for <code>*this</code></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2439">N2439</a></td>
|
2011-11-05 18:11:36 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Initialization of class objects by rvalues</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1610">N1610</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Non-static data member initializers</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2756">N2756</a></td>
|
2011-11-05 18:11:36 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Variadic templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2242">N2242</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> Extending variadic template template parameters</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2555">N2555</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan="3">Initializer lists</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2672">N2672</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr> <!-- from Kona 2019-->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1009r2">P1009R2</a> (<a href="#dr">DR</a>)</td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<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>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Static assertions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1720">N1720</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>auto</code>-typed variables</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1984">N1984</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> Multi-declarator <code>auto</code></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1737">N1737</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> Removal of auto as a storage-class specifier</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2546">N2546</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> New function declarator syntax</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2541">N2541</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td rowspan="2">Lambda expressions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2927">N2927</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Albuquerque 2017 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0588r1">P0588R1</a> (<a href="#dr">DR</a>)</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Declared type of an expression</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2343">N2343</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2012-04-11 04:00:33 +08:00
|
|
|
<tr>
|
|
|
|
<td> Incomplete return types</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3276">N3276</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2012-04-11 04:00:33 +08:00
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Right angle brackets</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1757">N1757</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Default template arguments for function templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/cwg226">DR226</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Solving the SFINAE problem for expressions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2634">DR339</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Alias templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2258">N2258</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Extern templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1987">N1987</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Null pointer constant</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2431">N2431</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Strongly-typed enums</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2347">N2347</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Forward declarations for enums</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2764">N2764</a>
|
|
|
|
<br><a href="https://wg21.link/cwg1206">DR1206</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2014-01-17 08:11:48 +08:00
|
|
|
<td>Standardized attribute syntax</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2761">N2761</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td rowspan="2">Generalized constant expressions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2235">N2235</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Albuquerque 2017 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0859r0">P0859R0</a> (<a href="#dr">DR</a>)</td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Alignment support</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2341">N2341</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2014-03-15 05:21:24 +08:00
|
|
|
<tr>
|
|
|
|
<td>Conditionally-support behavior</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1627">N1627</a></td>
|
2014-03-15 05:21:24 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Changing undefined behavior into diagnosable errors</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1727">N1727</a></td>
|
2014-03-15 05:21:24 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Delegating constructors</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1986">N1986</a></td>
|
2011-11-05 18:11:36 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td rowspan="2">Inheriting constructors</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2540">N2540</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Kona 2015 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0136r1">P0136R1</a> (<a href="#dr">DR</a>)</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Explicit conversion operators</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2437">N2437</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>New character types</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2249">N2249</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Unicode string literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2442">N2442</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Raw string literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2442">N2442</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-03-10 06:27:51 +08:00
|
|
|
<td>Universal character names in literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2170">N2170</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>User-defined literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2765">N2765</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Standard Layout Types</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2342">N2342</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<td rowspan="2">Defaulted functions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2346">N2346</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-29 03:44:09 +08:00
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr> <!-- from Kona 2019-->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1286r2">P1286R2</a> (<a href="#dr">DR</a>)</td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2011-10-29 03:44:09 +08:00
|
|
|
<tr>
|
|
|
|
<td>Deleted functions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2346">N2346</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Extended friend declarations</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1791">N1791</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Extending <code>sizeof</code></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2253">N2253</a>
|
|
|
|
<br><a href="https://wg21.link/cwg850">DR850</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Inline namespaces</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2535">N2535</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Unrestricted unions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2544">N2544</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Local and unnamed types as template arguments</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2657">N2657</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td rowspan="2">Range-based for</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2930">N2930</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Jacksonville 2018 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0962r1">P0962R1</a> (<a href="#dr">DR</a>)</td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Explicit virtual overrides</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<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>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Minimal support for garbage collection and reachability-based leak detection</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2670">N2670</a></td>
|
2014-03-15 04:26:09 +08:00
|
|
|
<td class="na" align="center">N/A <a href="#n2670">(2)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Allowing move constructors to throw [noexcept]</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3050">N3050</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Defining move special member functions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3053">N3053</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 3.0</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2010-12-21 13:43:31 +08:00
|
|
|
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr class="separator">
|
2011-11-05 18:11:36 +08:00
|
|
|
<th align="center" colspan="3">Concurrency</th>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Sequence points</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2239">N2239</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Atomic operations</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2427">N2427</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Strong Compare and Exchange</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2748">N2748</a></td>
|
2014-03-15 04:26:09 +08:00
|
|
|
<td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Bidirectional Fences</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2752">N2752</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2009-02-15 04:20:19 +08:00
|
|
|
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr>
|
|
|
|
<td>Memory model</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2429">N2429</a></td>
|
2013-01-29 12:55:18 +08:00
|
|
|
<td class="full" align="center">Clang 3.2</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Data-dependency ordering: atomics and memory model</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2664">N2664</a></td>
|
2014-03-15 04:26:09 +08:00
|
|
|
<td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Propagating exceptions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2179">N2179</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Allow atomics use in signal handlers</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2547">N2547</a></td>
|
2012-05-23 09:38:11 +08:00
|
|
|
<td class="full" align="center">Clang 3.1</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Thread-local storage</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2659">N2659</a></td>
|
2016-02-10 06:48:14 +08:00
|
|
|
<td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Dynamic initialization and destruction with concurrency</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2660">N2660</a></td>
|
2013-02-22 17:31:00 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2010-02-06 07:51:14 +08:00
|
|
|
|
2011-10-15 07:21:49 +08:00
|
|
|
<tr class="separator">
|
2012-02-25 02:42:08 +08:00
|
|
|
<th align="center" colspan="3">C99 Features in C++11</th>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>__func__</code> predefined identifier</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n2340">N2340</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>C99 preprocessor</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1653">N1653</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><code>long long</code></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1811">N1811</a></td>
|
2011-11-02 14:29:37 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Extended integral types</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n1988">N1988</a></td>
|
2016-02-10 06:48:14 +08:00
|
|
|
<td class="na" align="center">N/A <a href="#n1988">(6)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
2009-02-15 04:20:19 +08:00
|
|
|
</table>
|
2013-03-13 03:56:09 +08:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute
|
2013-03-19 05:57:52 +08:00
|
|
|
has no effect.</span><br>
|
2014-03-15 04:26:09 +08:00
|
|
|
<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
|
2013-03-19 05:57:52 +08:00
|
|
|
strong compare-exchanges.</span><br>
|
2014-03-15 04:26:09 +08:00
|
|
|
<span id="n2664">(4): <code>memory_order_consume</code> is lowered to
|
2013-03-19 05:57:52 +08:00
|
|
|
<code>memory_order_acquire</code>.</span><br>
|
2016-02-10 06:48:14 +08:00
|
|
|
<span id="n2659">(5): <code>thread_local</code> support
|
|
|
|
requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such
|
2019-10-24 07:42:47 +08:00
|
|
|
as <a href="https://libcxxabi.llvm.org">libc++abi</a> 3.6 or later,
|
2016-02-10 06:48:14 +08:00
|
|
|
or libsupc++ 4.8 or later.</span><br>
|
|
|
|
<span id="n1988">(6): No compiler changes are required for an implementation
|
2014-03-15 04:26:09 +08:00
|
|
|
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>
|
2013-03-13 03:56:09 +08:00
|
|
|
</p>
|
2016-09-29 05:01:37 +08:00
|
|
|
</details>
|
2013-03-13 03:56:09 +08:00
|
|
|
|
2014-08-31 12:17:48 +08:00
|
|
|
<h2 id="cxx14">C++14 implementation status</h2>
|
2013-04-20 01:27:48 +08:00
|
|
|
|
2016-09-29 03:22:36 +08:00
|
|
|
<p>Clang 3.4 and later implement all of the <a
|
2019-10-24 07:42:47 +08:00
|
|
|
href="https://www.iso.org/standard/64029.html">ISO
|
2016-09-29 05:01:37 +08:00
|
|
|
C++ 2014 standard</a>.
|
2013-04-20 01:27:48 +08:00
|
|
|
|
2014-08-31 12:17:48 +08:00
|
|
|
<p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option
|
2014-08-31 12:18:54 +08:00
|
|
|
(use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p>
|
2013-04-20 21:22:50 +08:00
|
|
|
|
2016-09-29 05:01:37 +08:00
|
|
|
<details>
|
|
|
|
<summary>List of features and minimum Clang version with support</summary>
|
|
|
|
|
2013-04-20 01:27:48 +08:00
|
|
|
<table width="689" border="1" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<th>Language Feature</th>
|
2014-08-31 12:17:48 +08:00
|
|
|
<th>C++14 Proposal</th>
|
2013-04-20 01:27:48 +08:00
|
|
|
<th>Available in Clang?</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Tweak to certain C++ contextual conversions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3323">N3323</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:44:32 +08:00
|
|
|
<td>Binary literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3472">N3472</a></td>
|
2015-02-09 19:48:43 +08:00
|
|
|
<td class="full" align="center">Clang 2.9</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
2013-04-27 00:15:35 +08:00
|
|
|
<tr>
|
|
|
|
<td>decltype(auto)</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td rowspan=2 style="vertical-align:middle"><a href="https://wg21.link/n3638">N3638</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3</td>
|
2013-04-27 00:15:35 +08:00
|
|
|
</tr>
|
2013-04-20 20:44:32 +08:00
|
|
|
<tr>
|
2013-04-20 20:47:36 +08:00
|
|
|
<td>Return type deduction for normal functions</td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:47:36 +08:00
|
|
|
<td>Initialized lambda captures</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3648">N3648</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:58:57 +08:00
|
|
|
<td>Generic lambdas</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3649">N3649</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:58:57 +08:00
|
|
|
<td>Variable templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3651">N3651</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:49:36 +08:00
|
|
|
<td>Relaxing requirements on constexpr functions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3652">N3652</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:47:36 +08:00
|
|
|
<td>Member initializers and aggregates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3653">N3653</a></td>
|
2013-06-18 07:54:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.3</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:57:49 +08:00
|
|
|
<td>Clarifying memory allocation</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3664">N3664</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
2013-09-28 03:11:33 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>[[deprecated]]</tt> attribute</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3760">N3760</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-09-28 03:11:33 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Single quotation mark as digit separator</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3781">N3781</a></td>
|
2014-02-03 14:58:08 +08:00
|
|
|
<td class="full" align="center">Clang 3.4</td>
|
2013-09-28 03:11:33 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-09-28 03:35:09 +08:00
|
|
|
<td>C++ Sized Deallocation</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3778">N3778</a></td>
|
2016-02-10 06:48:14 +08:00
|
|
|
<td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td>
|
2013-09-28 03:11:33 +08:00
|
|
|
</tr>
|
2013-04-20 01:27:48 +08:00
|
|
|
</table>
|
2015-03-20 08:31:07 +08:00
|
|
|
|
2015-02-19 12:34:13 +08:00
|
|
|
<p>
|
2016-02-10 06:48:14 +08:00
|
|
|
<span id="n3778">(7): In Clang 3.7 and later, sized deallocation is only enabled
|
2015-03-20 08:31:07 +08:00
|
|
|
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.
|
2015-02-19 12:34:13 +08:00
|
|
|
</span>
|
|
|
|
</p>
|
2016-09-29 05:01:37 +08:00
|
|
|
</details>
|
2013-04-20 01:27:48 +08:00
|
|
|
|
2017-07-15 23:42:36 +08:00
|
|
|
<h2 id="cxx17">C++17 implementation status</h2>
|
2013-11-07 14:41:26 +08:00
|
|
|
|
2018-03-17 22:28:47 +08:00
|
|
|
<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>.
|
2014-06-21 04:33:10 +08:00
|
|
|
|
2017-08-31 07:10:31 +08:00
|
|
|
<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>
|
2014-06-21 04:33:10 +08:00
|
|
|
|
2016-09-29 05:01:37 +08:00
|
|
|
<details open>
|
|
|
|
<summary>List of features and minimum Clang version with support</summary>
|
|
|
|
|
2014-06-21 04:33:10 +08:00
|
|
|
<table width="689" border="1" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<th>Language Feature</th>
|
2017-07-15 23:42:36 +08:00
|
|
|
<th>C++17 Proposal</th>
|
2014-06-21 04:33:10 +08:00
|
|
|
<th>Available in Clang?</th>
|
|
|
|
</tr>
|
2016-11-12 06:48:43 +08:00
|
|
|
<!-- Issaquah 2014 papers -->
|
2014-06-21 04:33:10 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>static_assert</tt> with no message</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3928">N3928</a></td>
|
2014-09-12 01:30:32 +08:00
|
|
|
<td class="full" align="center">Clang 3.5</td>
|
2014-06-21 04:33:10 +08:00
|
|
|
</tr>
|
2014-11-08 13:07:16 +08:00
|
|
|
<!-- Rapperswil papers -->
|
2014-06-21 04:33:10 +08:00
|
|
|
<tr>
|
|
|
|
<td>Disabling trigraph expansion by default</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4086">N4086</a></td>
|
2014-09-12 01:30:32 +08:00
|
|
|
<td class="full" align="center">Clang 3.5</td>
|
2014-06-21 04:33:10 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>typename</tt> in a template template parameter</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4051">N4051</a></td>
|
2014-09-12 01:30:32 +08:00
|
|
|
<td class="full" align="center">Clang 3.5</td>
|
2014-06-21 04:33:10 +08:00
|
|
|
</tr>
|
2014-11-26 11:26:53 +08:00
|
|
|
<tr>
|
|
|
|
<td>New <tt>auto</tt> rules for direct-list-initialization
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n3922">N3922</a></td>
|
2016-03-20 18:37:12 +08:00
|
|
|
<td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td>
|
2014-11-26 11:26:53 +08:00
|
|
|
</tr>
|
2014-11-08 13:07:16 +08:00
|
|
|
<!-- Urbana papers -->
|
|
|
|
<tr>
|
2016-03-05 05:01:14 +08:00
|
|
|
<td rowspan="2">Fold expressions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4295">N4295</a></td>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">Clang 3.6</td>
|
2014-11-08 14:08:42 +08:00
|
|
|
</tr>
|
2016-03-05 05:01:14 +08:00
|
|
|
<tr> <!-- from Jacksonville -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0036r0">P0036R0</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
2014-11-08 14:08:42 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>u8</tt> character literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4267">N4267</a></td>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">Clang 3.6</td>
|
2014-11-08 13:07:16 +08:00
|
|
|
</tr>
|
2014-11-08 13:37:34 +08:00
|
|
|
<tr>
|
|
|
|
<td>Nested namespace definition</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4230">N4230</a></td>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">Clang 3.6</td>
|
2014-11-08 13:37:34 +08:00
|
|
|
</tr>
|
2014-11-08 23:33:35 +08:00
|
|
|
<tr>
|
|
|
|
<td>Attributes for namespaces and enumerators</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4266">N4266</a></td>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">Clang 3.6</td>
|
2014-11-08 23:33:35 +08:00
|
|
|
</tr>
|
2014-11-26 11:26:53 +08:00
|
|
|
<tr>
|
|
|
|
<td>Allow constant evaluation for all non-type template arguments</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4268">N4268</a></td>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">Clang 3.6</td>
|
2014-11-26 11:26:53 +08:00
|
|
|
</tr>
|
2015-11-06 05:41:06 +08:00
|
|
|
<!-- Kona papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Remove deprecated <tt>register</tt> storage class</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0001r1">P0001R1</a></td>
|
2016-03-20 18:37:12 +08:00
|
|
|
<td class="full" align="center">Clang 3.8</td>
|
2015-11-06 05:41:06 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Remove deprecated <tt>bool</tt> increment</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0002r1">P0002R1</a></td>
|
2016-03-20 18:37:12 +08:00
|
|
|
<td class="full" align="center">Clang 3.8</td>
|
2015-11-06 05:41:06 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Make exception specifications part of the type system</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0012r1">P0012R1</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2015-11-06 05:41:06 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2015-11-26 10:16:37 +08:00
|
|
|
<td><tt>__has_include</tt> in preprocessor conditionals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0061r1">P0061R1</a></td>
|
2015-11-06 05:41:06 +08:00
|
|
|
<td class="full" align="center">Yes</td>
|
|
|
|
</tr>
|
2016-03-05 05:01:14 +08:00
|
|
|
<!-- Jacksonville papers -->
|
|
|
|
<tr>
|
|
|
|
<td><tt>[[fallthrough]]</tt> attribute</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0188r1">P0188R1</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td rowspan="2"><tt>[[nodiscard]]</tt> attribute</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0189r1">P0189R1</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr> <!-- from Cologne 2019 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1771r1">P1771R1</a> (<a href="#dr">DR</a>)</td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2016-03-05 05:01:14 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>[[maybe_unused]]</tt> attribute</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0212r1">P0212R1</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Aggregate initialization of classes with base classes</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0017r1">P0017R1</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>constexpr</tt> lambda expressions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0170r1">P0170R1</a></td>
|
2017-09-09 09:11:04 +08:00
|
|
|
<td class="full" align="center">Clang 5</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Differing <tt>begin</tt> and <tt>end</tt> types in range-based <tt>for</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0184r0">P0184R0</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Lambda capture of <tt>*this</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0018r3">P0018R3</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Direct-list-initialization of <tt>enum</tt>s</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0138r2">P0138R2</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Hexadecimal floating-point literals</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0245r1">P0245R1</a></td>
|
2016-03-05 05:01:14 +08:00
|
|
|
<td class="full" align="center">Yes</td>
|
|
|
|
</tr>
|
2016-06-24 03:16:49 +08:00
|
|
|
<!-- Oulu papers -->
|
2016-06-24 19:20:31 +08:00
|
|
|
<tr>
|
|
|
|
<td>Using attribute namespaces without repetition</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0028r4">P0028R4</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Dynamic memory allocation for over-aligned data</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0035r4">P0035R4</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td rowspan="4">Template argument deduction for class templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0091r3">P0091R3</a></td>
|
2017-09-09 09:11:04 +08:00
|
|
|
<td rowspan="2" class="full" align="center">Clang 5</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
2017-02-10 06:47:51 +08:00
|
|
|
<tr> <!-- from Issaquah -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0512r0">P0512R0</a></td>
|
2017-02-10 06:47:51 +08:00
|
|
|
</tr>
|
2018-05-31 07:30:36 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Kona 2017 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0620r1">P0620R0</a> (<a href="#dr">DR</a>)</td>
|
2018-09-25 07:21:09 +08:00
|
|
|
<td class="full" align="center">Clang 7</td>
|
2018-05-31 07:30:36 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Toronto 2017 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0702r1">P0702R1</a> (<a href="#dr">DR</a>)</td>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2016-06-24 19:20:31 +08:00
|
|
|
<tr>
|
2016-06-24 20:21:30 +08:00
|
|
|
<td>Non-type template parameters with <tt>auto</tt> type</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0127r2">P0127R2</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Guaranteed copy elision</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0135r1">P0135R1</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-14 08:14:59 +08:00
|
|
|
<td rowspan=2>Stricter expression evaluation order</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0145r3">P0145R3</a></td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td class="full" align="center" rowspan=2>Clang 4 <a href="#p0145">(9)</a></td>
|
2016-07-14 08:14:59 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0400r0">P0400R0</a></td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Requirement to ignore unknown attributes</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0283r2">P0283R2</a></td>
|
2016-06-24 19:20:31 +08:00
|
|
|
<td class="full" align="center">Yes</td>
|
|
|
|
</tr>
|
2016-06-24 03:16:49 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>constexpr</tt> <em>if-statement</em>s</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0292r2">P0292R2</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-06-24 03:16:49 +08:00
|
|
|
</tr>
|
2016-06-24 19:20:31 +08:00
|
|
|
<tr>
|
|
|
|
<td>Inline variables</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0386r2">P0386R2</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td rowspan="3">Structured bindings</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0217r3">P0217R3</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<!-- from Jacksonville 2018 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0961r1">P0961R1</a> (<a href="#dr">DR</a>)</td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<!-- from Jacksonville 2018 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0969r0">P0969R0</a> (<a href="#dr">DR</a>)</td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2016-06-24 19:20:31 +08:00
|
|
|
<tr>
|
2016-06-24 22:23:32 +08:00
|
|
|
<td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0305r1">P0305R1</a></td>
|
2016-08-15 10:47:23 +08:00
|
|
|
<td class="full" align="center">Clang 3.9</td>
|
2016-06-24 19:20:31 +08:00
|
|
|
</tr>
|
2016-11-12 06:48:43 +08:00
|
|
|
<!-- Issaquah 2016 papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Matching template template parameters to compatible arguments</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0522r0">P0522R0</a></td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td class="partial" align="center">Partial <a href="#p0522">(10)</a></td>
|
2016-11-12 06:48:43 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Removing deprecated dynamic exception specifications</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0003r5">P0003R5</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-11-12 06:48:43 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Pack expansions in <em>using-declarations</em></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0195r2">P0195R2</a></td>
|
2017-03-16 22:21:00 +08:00
|
|
|
<td class="full" align="center">Clang 4</td>
|
2016-11-12 06:48:43 +08:00
|
|
|
</tr>
|
2014-06-21 04:33:10 +08:00
|
|
|
</table>
|
2013-11-07 14:41:26 +08:00
|
|
|
|
2015-11-11 09:36:17 +08:00
|
|
|
<p>
|
2016-02-10 06:48:14 +08:00
|
|
|
<span id="n3922">(8): This is a backwards-incompatible change that is applied to
|
2015-11-11 09:36:17 +08:00
|
|
|
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.
|
2016-06-29 04:37:43 +08:00
|
|
|
</span><br>
|
2018-03-17 22:28:47 +08:00
|
|
|
<span id="p0145">(9): Under the MS ABI, function parameters are destroyed from
|
Switch to a different workaround for unimplementability of P0145R3 in MS ABIs.
Instead of ignoring the evaluation order rule, ignore the "destroy parameters
in reverse construction order" rule for the small number of problematic cases.
This only causes incorrect behavior in the rare case where both parameters to
an overloaded operator <<, >>, ->*, &&, ||, or comma are of class type with
non-trivial destructor, and the program is depending on those parameters being
destroyed in reverse construction order.
We could do a little better here by reversing the order of parameter
destruction for those functions (and reversing the argument evaluation order
for all direct calls, not just those with operator syntax), but that is not a
complete solution to the problem, as the same situation can be reached by an
indirect function call.
Approach reviewed off-line by rnk.
llvm-svn: 282777
2016-09-30 05:30:12 +08:00
|
|
|
left to right in the callee. As a result, function parameters in calls to
|
2016-09-29 03:09:10 +08:00
|
|
|
<tt>operator<<</tt>, <tt>operator>></tt>, <tt>operator->*</tt>,
|
|
|
|
<tt>operator&&</tt>, <tt>operator||</tt>, and <tt>operator,</tt>
|
Switch to a different workaround for unimplementability of P0145R3 in MS ABIs.
Instead of ignoring the evaluation order rule, ignore the "destroy parameters
in reverse construction order" rule for the small number of problematic cases.
This only causes incorrect behavior in the rare case where both parameters to
an overloaded operator <<, >>, ->*, &&, ||, or comma are of class type with
non-trivial destructor, and the program is depending on those parameters being
destroyed in reverse construction order.
We could do a little better here by reversing the order of parameter
destruction for those functions (and reversing the argument evaluation order
for all direct calls, not just those with operator syntax), but that is not a
complete solution to the problem, as the same situation can be reached by an
indirect function call.
Approach reviewed off-line by rnk.
llvm-svn: 282777
2016-09-30 05:30:12 +08:00
|
|
|
functions using expression syntax are no longer guaranteed to be destroyed in
|
|
|
|
reverse construction order in that ABI.
|
2020-10-06 08:52:23 +08:00
|
|
|
This is not fully supported during constant expression evaluation until Clang 12.
|
2016-11-12 07:46:25 +08:00
|
|
|
</span><br>
|
2018-03-17 22:28:47 +08:00
|
|
|
<span id="p0522">(10): Despite being the resolution to a Defect Report, this
|
2017-01-01 05:41:23 +08:00
|
|
|
feature is disabled by default in all language versions, and can be enabled
|
2017-12-01 07:07:29 +08:00
|
|
|
explicitly with the flag <tt>-frelaxed-template-template-args</tt> in Clang 4
|
|
|
|
onwards.
|
2017-01-13 08:57:54 +08:00
|
|
|
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.
|
P0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991:
Replace inheriting constructors implementation with new approach, voted into
C++ last year as a DR against C++11.
Instead of synthesizing a set of derived class constructors for each inherited
base class constructor, we make the constructors of the base class visible to
constructor lookup in the derived class, using the normal rules for
using-declarations.
For constructors, UsingShadowDecl now has a ConstructorUsingShadowDecl derived
class that tracks the requisite additional information. We create shadow
constructors (not found by name lookup) in the derived class to model the
actual initialization, and have a new expression node,
CXXInheritedCtorInitExpr, to model the initialization of a base class from such
a constructor. (This initialization is special because it performs real perfect
forwarding of arguments.)
In cases where argument forwarding is not possible (for inalloca calls,
variadic calls, and calls with callee parameter cleanup), the shadow inheriting
constructor is not emitted and instead we directly emit the initialization code
into the caller of the inherited constructor.
Note that this new model is not perfectly compatible with the old model in some
corner cases. In particular:
* if B inherits a private constructor from A, and C uses that constructor to
construct a B, then we previously required that A befriends B and B
befriends C, but the new rules require A to befriend C directly, and
* if a derived class has its own constructors (and so its implicit default
constructor is suppressed), it may still inherit a default constructor from
a base class
llvm-svn: 274049
2016-06-29 03:03:57 +08:00
|
|
|
</span>
|
2015-11-11 09:36:17 +08:00
|
|
|
</p>
|
2016-09-29 05:01:37 +08:00
|
|
|
</details>
|
2015-11-11 09:36:17 +08:00
|
|
|
|
2020-02-19 08:13:23 +08:00
|
|
|
<h2 id="cxx20">C++20 implementation status</h2>
|
2017-07-15 23:42:36 +08:00
|
|
|
|
2020-02-19 08:13:23 +08:00
|
|
|
<p>Clang has support for some of the features of the
|
|
|
|
ISO C++ 2020 Draft International Standard.
|
2017-07-15 23:42:36 +08:00
|
|
|
|
2020-02-19 08:13:23 +08:00
|
|
|
<p>You can use Clang in C++20 mode with the <code>-std=c++20</code> option
|
2020-02-21 03:40:09 +08:00
|
|
|
(use <code>-std=c++2a</code> in Clang 9 and earlier).</p>
|
2017-07-15 23:42:36 +08:00
|
|
|
|
|
|
|
<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>
|
2020-02-19 08:13:23 +08:00
|
|
|
<th>C++20 Proposal</th>
|
2017-07-15 23:42:36 +08:00
|
|
|
<th>Available in Clang?</th>
|
|
|
|
</tr>
|
|
|
|
<!-- Toronto 2017 papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Default member initializers for bit-fields</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0683r1">P0683R1</a></td>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>const&</tt>-qualified pointers to members</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0704r1">P0704R1</a></td>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Allow <i>lambda-capture</i> <tt>[=, this]</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0409r2">P0409R2</a></td>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<td rowspan="2"><tt>__VA_OPT__</tt> for preprocessor comma elision</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0306r4">P0306R4</a></td>
|
2018-05-31 07:30:36 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<tr> <!-- from Rapperswil -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1042r1">P1042R1</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
2017-07-15 23:42:36 +08:00
|
|
|
<tr>
|
|
|
|
<td>Designated initializers</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0329r4">P0329R4</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td class="full" align="center">Clang 10</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><i>template-parameter-list</i> for generic lambdas</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0428r2">P0428R2</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2017-07-15 23:42:36 +08:00
|
|
|
</tr>
|
2017-11-12 01:54:46 +08:00
|
|
|
<tr id="p0734">
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan="12">Concepts</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0734r0">P0734R0</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td rowspan="4" class="full" align="center">Clang 10</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
|
|
|
<tr> <!-- from Albuquerque -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0857r0">P0857R0</a></td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
2018-11-11 02:02:40 +08:00
|
|
|
<tr> <!-- from San Diego -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1084r2">P1084R2</a></td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-12-15 06:52:24 +08:00
|
|
|
<td><a href="https://wg21.link/p1141r2">P1141R2</a></td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr> <!-- from Cologne -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0848r3">P0848R3</a></td>
|
2020-01-24 08:59:14 +08:00
|
|
|
<td rowspan="1" class="none" align="center">No</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1616r1">P1616R1</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td rowspan="2" class="full" align="center">Clang 10</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1452r2">P1452R2</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<tr> <!-- from Belfast -->
|
|
|
|
<td><a href="https://wg21.link/p1972r0">P1972R0</a></td>
|
2020-01-24 08:59:14 +08:00
|
|
|
<td rowspan="2" class="none" align="center">No</td>
|
2019-11-09 17:17:57 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><a href="https://wg21.link/p1980r0">P1980R0</a></td>
|
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<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>
|
2017-11-12 01:54:46 +08:00
|
|
|
<!-- Albuquerque papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Range-based for statements with initializer</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0614r1">P0614R1</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>ADL and function templates that are not visible</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0846r0">P0846R0</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>const</tt> mismatch with defaulted copy constructor</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0641r2">P0641R2</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
2017-11-12 02:00:16 +08:00
|
|
|
<tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan="10">Consistent comparison (<tt>operator<=></tt>)</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0515r3">P0515R3</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td rowspan="8" class="full" align="center">Clang 10</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr> <!-- from Jacksonville -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0905r1">P0905R1</a></td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<tr> <!-- from Rapperswil -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1120r0">P1120R0</a></td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr> <!-- from Kona 2019 -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1185r2">P1185R2</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr> <!-- from Cologne -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1186r3">P1186R3</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1630r1">P1630R1</a></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<tr> <!-- from Belfast -->
|
|
|
|
<td><a href="https://wg21.link/p1946r0">P1946R0</a></td>
|
2019-12-10 10:01:47 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><a href="https://wg21.link/p1959r0">P1959R0</a></td>
|
2019-11-09 17:17:57 +08:00
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<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>
|
2017-11-12 01:54:46 +08:00
|
|
|
<tr>
|
|
|
|
<td>Access checking on specializations</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0692r1">P0692R1</a></td>
|
2017-11-12 01:54:46 +08:00
|
|
|
<td class="partial" align="center">Partial</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Default constructible and assignable stateless lambdas</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0624r2">P0624R2</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2017-11-12 01:54:46 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Lambdas in unevaluated contexts</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0315r4">P0315R4</a></td>
|
2017-07-15 23:42:36 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<!-- Jacksonville papers -->
|
|
|
|
<tr>
|
|
|
|
<td><tt>[[no_unique_address]]</tt> attribute</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0840r2">P0840R2</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>[[likely]]</tt> and <tt>[[unlikely]]</tt> attributes</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0479r5">P0479R5</a></td>
|
2020-09-10 01:12:32 +08:00
|
|
|
<td class="none" align="center">Clang 12 (partial)</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>typename</tt> optional in more contexts</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0634r3">P0634R3</a></td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Pack expansion in lambda <i>init-capture</i></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0780r2">P0780R2</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-03-17 22:28:47 +08:00
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<!-- Rapperswil papers -->
|
|
|
|
<tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<td rowspan="2">Class types as non-type template parameters</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0732r2">P0732R2</a></td>
|
2019-11-09 17:17:57 +08:00
|
|
|
<td rowspan="2" class="none" align="center">No</td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<tr> <!-- from Belfast -->
|
|
|
|
<td><a href="https://wg21.link/p1907r1">P1907R1</a></td>
|
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<tr>
|
|
|
|
<td>Destroying operator delete</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0722r3">P0722R3</a></td>
|
2018-06-14 08:05:28 +08:00
|
|
|
<td class="full" align="center">Clang 6</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td rowspan="7">Relaxations of <tt>constexpr</tt> restrictions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1064r0">P1064R0</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
2018-11-11 02:02:40 +08:00
|
|
|
<tr> <!-- from San Diego -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1002r1">P1002R1</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1327r1">P1327R1</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td rowspan="2" class="full" align="center">Clang 9</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1330r0">P1330R0</a></td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr> <!-- from Cologne -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1331r2">P1331R2</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td rowspan="3" class="full" align="center">Clang 10</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1668r1">P1668R1</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0784r7">P0784R7</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<tr>
|
|
|
|
<td>Prohibit aggregates with user-declared constructors</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1008r1">P1008R1</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Feature test macros</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0941r2">P0941R2</a></td>
|
2018-06-14 08:40:20 +08:00
|
|
|
<td class="full" align="center"><a href="#sd6">(see below)</a></td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>explicit(bool)</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0892r2">P0892R2</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-06-14 08:05:28 +08:00
|
|
|
</tr>
|
2018-11-11 02:02:40 +08:00
|
|
|
<!-- San Diego papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Signed integers are two's complement</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1236r1">P1236R1</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>char8_t</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0482r6">P0482R6</a></td>
|
2018-11-15 05:04:34 +08:00
|
|
|
<td class="full" align="center">Clang 7 <a href="#p0482">(11)</a></td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan=2>Immediate functions (<tt>consteval</tt>)</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1073r3">P1073R3</a></td>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan=2 class="none" align="center">No</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<tr> <!-- from Prague -->
|
|
|
|
<td><a href="https://wg21.link/p1937r2">P1937R2</a></td>
|
|
|
|
</tr>
|
2018-11-11 02:02:40 +08:00
|
|
|
<tr>
|
|
|
|
<td><tt>std::is_constant_evaluated</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0595r2">P0595R2</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Nested inline namespaces</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1094r2">P1094R2</a></td>
|
2019-05-04 08:23:18 +08:00
|
|
|
<td class="full" align="center">Clang 8</td>
|
2018-11-11 02:02:40 +08:00
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<!-- Kona 2019 papers -->
|
|
|
|
<tr>
|
|
|
|
<td rowspan="2">Structured binding extensions</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1091r3">P1091R3</a></td>
|
2019-05-23 03:52:55 +08:00
|
|
|
<td rowspan="2" class="partial" align="center">Partial</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1381r1">P1381R1</a></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td rowspan="2">Stronger Unicode requirements</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1041r4">P1041R4</a></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
<td rowspan="2" class="full" align="center">Yes</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1139r2">P1139R2</a></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<td rowspan="2">Parenthesized initialization of aggregates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0960r3">P0960R3</a></td>
|
2019-11-09 17:17:57 +08:00
|
|
|
<td rowspan="2" class="none" align="center">No</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<tr> <!-- from Belfast -->
|
|
|
|
<td><a href="https://wg21.link/p1975r0">P1975R0</a></td>
|
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan="10">Modules</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1103r3">P1103R3</a></td>
|
2019-05-04 08:27:21 +08:00
|
|
|
<td class="partial" align="center">Partial</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr> <!-- from Cologne -->
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1766r1">P1766R1</a> (<a href="#dr">DR</a>)</td>
|
2020-02-08 03:53:54 +08:00
|
|
|
<td class="unreleased" align="center">Clang 11</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1811r0">P1811R0</a></td>
|
2020-02-08 03:53:54 +08:00
|
|
|
<td rowspan="2" class="none" align="center">No</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1703r1">P1703R1</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2019-11-09 17:17:57 +08:00
|
|
|
<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>
|
2020-02-15 17:51:43 +08:00
|
|
|
<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>
|
2019-11-09 17:17:57 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr>
|
|
|
|
<td>Coroutines</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0912r5">P0912R5</a></td>
|
2019-02-24 05:06:26 +08:00
|
|
|
<td class="partial" align="center">Partial</td>
|
2019-02-24 05:06:25 +08:00
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<!-- Cologne 2019 papers -->
|
|
|
|
<tr>
|
|
|
|
<td>Deprecate <tt>a[b,c]</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1161r3">P1161R3</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Deprecate some problematic uses of <tt>volatile</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1152r4">P1152R4</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td class="full" align="center">Clang 10</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>[[nodiscard("with reason")]]</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1301r4">P1301R4</a></td>
|
2019-09-21 02:09:05 +08:00
|
|
|
<td class="full" align="center">Clang 9</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>using enum</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1099r5">P1099R5</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan=2>Class template argument deduction for aggregates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1816r0">P1816R0</a></td>
|
2020-02-15 17:51:43 +08:00
|
|
|
<td rowspan=2 class="none" align="center">No</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<tr> <!-- from Prague -->
|
|
|
|
<td><a href="https://wg21.link/p2082r1">P2082R1</a></td>
|
|
|
|
</tr>
|
2019-07-20 16:20:54 +08:00
|
|
|
<tr>
|
|
|
|
<td>Class template argument deduction for alias templates</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1814r0">P1814R0</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Permit conversions to arrays of unknown bound</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0388r4">P0388R4</a></td>
|
2019-07-20 16:20:54 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><tt>constinit</tt></td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p1143r2">P1143R2</a></td>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td class="full" align="center">Clang 10</td>
|
2019-07-20 16:20:54 +08:00
|
|
|
</tr>
|
2020-02-15 17:51:43 +08:00
|
|
|
<!-- 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>
|
2020-02-19 10:39:57 +08:00
|
|
|
<td class="unreleased" align="center">Clang 11</td>
|
2020-02-15 17:51:43 +08:00
|
|
|
</tr>
|
2017-07-15 23:42:36 +08:00
|
|
|
</table>
|
2018-11-15 05:04:34 +08:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<span id="p0482">(11): Prior to Clang 8, this feature is not enabled by
|
2020-02-19 08:13:23 +08:00
|
|
|
<tt>-std=c++20</tt>, but can be enabled with <tt>-fchar8_t</tt>.
|
2018-11-15 05:04:34 +08:00
|
|
|
</span>
|
|
|
|
</p>
|
2017-07-15 23:42:36 +08:00
|
|
|
</details>
|
|
|
|
|
2018-03-17 22:28:47 +08:00
|
|
|
<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>
|
2017-09-07 15:22:36 +08:00
|
|
|
|
2013-11-28 06:58:16 +08:00
|
|
|
<h2 id="ts">Technical specifications and standing documents</h2>
|
|
|
|
|
|
|
|
<p>ISO C++ also publishes a number of documents describing additional language
|
2016-09-29 05:01:37 +08:00
|
|
|
and library features that are not part of standard C++.</p>
|
|
|
|
|
|
|
|
<details open>
|
|
|
|
<summary>List of features and minimum Clang version with support</summary>
|
2013-11-28 06:58:16 +08:00
|
|
|
|
|
|
|
<table width="689" border="1" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<th>Document</th>
|
|
|
|
<th>Latest draft</th>
|
2016-09-29 05:01:37 +08:00
|
|
|
<th>Compiler flag</th>
|
2013-11-28 06:58:16 +08:00
|
|
|
<th>Available in Clang?</th>
|
|
|
|
</tr>
|
2018-06-14 08:05:28 +08:00
|
|
|
<tr id="sd6">
|
2019-11-09 17:17:57 +08:00
|
|
|
<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>
|
2014-11-13 05:16:38 +08:00
|
|
|
<td class="full" align="center">
|
2019-10-24 07:42:47 +08:00
|
|
|
Clang 3.4 (<a href="https://wg21.link/n3745">N3745</a>)</br>
|
2014-11-13 05:16:38 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2015-11-11 09:36:17 +08:00
|
|
|
<td class="full" align="center">
|
2019-10-24 07:42:47 +08:00
|
|
|
Clang 3.6 (<a href="https://wg21.link/n4200">N4200</a>)</a>
|
2014-11-13 05:16:38 +08:00
|
|
|
</td>
|
2013-11-28 06:58:16 +08:00
|
|
|
</tr>
|
2016-09-29 03:44:50 +08:00
|
|
|
<tr>
|
2017-01-13 08:57:54 +08:00
|
|
|
<td class="full" align="center">
|
2019-10-24 07:42:47 +08:00
|
|
|
Clang 4 (<a href="https://wg21.link/p0096r3">P0096R3</a>)</a>
|
2016-09-29 03:44:50 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-11 11:39:40 +08:00
|
|
|
<tr>
|
2017-09-09 09:11:04 +08:00
|
|
|
<td class="full" align="center">
|
2019-10-24 07:42:47 +08:00
|
|
|
Clang 5 (<a href="https://wg21.link/p0096r4">P0096R4</a>)</a>
|
2017-08-11 11:39:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-06-14 08:40:20 +08:00
|
|
|
<tr>
|
2018-09-25 07:21:09 +08:00
|
|
|
<td class="full" align="center">
|
2019-10-24 07:42:47 +08:00
|
|
|
Clang 7 (<a href="https://wg21.link/p0096r5">P0096R5</a>)</a>
|
2018-06-14 08:40:20 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-01-12 01:09:22 +08:00
|
|
|
<tr>
|
2019-12-20 04:57:04 +08:00
|
|
|
<td class="full" align="center">
|
|
|
|
Clang 9 (<a href="https://wg21.link/p1353r0">P1353R0</a>)
|
2019-11-09 17:17:57 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2015-11-06 05:41:06 +08:00
|
|
|
<tr>
|
2020-04-15 06:36:50 +08:00
|
|
|
<td class="full" align="center">
|
2020-01-23 06:48:56 +08:00
|
|
|
Clang 10 (<a href="https://wg21.link/p1902r1">P1902R1</a>)</a>
|
2015-11-06 05:41:06 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<!-- No compiler support is known to be needed for:
|
|
|
|
* Concurrency TS
|
2018-06-14 08:40:20 +08:00
|
|
|
* Parallelism TS (v1, v2)
|
2015-11-06 05:41:06 +08:00
|
|
|
* Ranges TS
|
|
|
|
* Networking TS
|
|
|
|
* File System TS
|
|
|
|
-->
|
|
|
|
<tr>
|
|
|
|
<td>[TS] Concepts</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/p0121r0">P0121R0</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
<td></td>
|
2017-11-12 01:54:46 +08:00
|
|
|
<td class="na" align="center">Superseded by <a href="#p0734">P0734R0</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-11-11 02:02:40 +08:00
|
|
|
<!-- track unimplemented Coroutines features: p0913r1 p0914r1 p1356r0 -->
|
2019-02-24 05:06:25 +08:00
|
|
|
<td rowspan="2">[TS] Coroutines</td>
|
|
|
|
<td rowspan="2"><a href="https://isocpp.org/files/papers/N4663.pdf">N4663</a></td>
|
2017-07-06 08:29:13 +08:00
|
|
|
<td><tt>-fcoroutines-ts<br>-stdlib=libc++</tt></td>
|
2017-09-09 09:11:04 +08:00
|
|
|
<td class="full" align="center">Clang 5</td>
|
2015-11-06 05:41:06 +08:00
|
|
|
</tr>
|
2019-02-24 05:06:25 +08:00
|
|
|
<tr>
|
2020-02-19 08:13:23 +08:00
|
|
|
<td><tt>-std=c++20<br>-stdlib=libc++</tt></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
<td class="na" align="center">Superseded by <a href="#p0912">P0912R5</a></td>
|
|
|
|
</tr>
|
2013-11-28 06:58:16 +08:00
|
|
|
<tr>
|
2015-11-06 05:41:06 +08:00
|
|
|
<td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4480">N4480</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
<td>N/A</td>
|
2013-11-28 06:58:16 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2014-02-15 08:29:00 +08:00
|
|
|
<tr>
|
2018-06-14 08:40:20 +08:00
|
|
|
<td>[TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4617">N4617</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
<td>N/A</td>
|
2019-10-09 07:39:56 +08:00
|
|
|
<td class="full" align="center">Clang 9 (<a href="docs/LanguageExtensions.html#source-location-builtins">documentation</a>)</td>
|
2014-02-15 08:29:00 +08:00
|
|
|
</tr>
|
2016-03-05 05:01:14 +08:00
|
|
|
<tr>
|
2018-06-14 08:40:20 +08:00
|
|
|
<td>[TS] Modules</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4720">N4720</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
<td><tt>-fmodules-ts</tt></td>
|
2019-02-24 05:06:25 +08:00
|
|
|
<td class="na" align="center">Superseded by <a href="#p1103">P1103R3</a></td>
|
2016-03-05 05:01:14 +08:00
|
|
|
</tr>
|
2018-03-17 22:28:47 +08:00
|
|
|
<tr>
|
|
|
|
<td>[DRAFT TS] Reflection</td>
|
2020-03-10 02:09:00 +08:00
|
|
|
<td><a href="https://wg21.link/n4818">N4818</a></td>
|
2018-03-17 22:28:47 +08:00
|
|
|
<td></td>
|
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2014-02-15 08:29:00 +08:00
|
|
|
<tr>
|
2015-11-06 05:41:06 +08:00
|
|
|
<td>[TS] Transactional Memory</td>
|
2019-10-24 07:42:47 +08:00
|
|
|
<td><a href="https://wg21.link/n4514">N4514</a></td>
|
2016-09-29 05:01:37 +08:00
|
|
|
<td></td>
|
2014-02-15 08:29:00 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
2013-11-28 06:58:16 +08:00
|
|
|
</table>
|
2016-09-29 05:01:37 +08:00
|
|
|
</details>
|
2013-11-28 06:58:16 +08:00
|
|
|
|
2009-02-15 04:20:19 +08:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|