2009-02-15 04:20:19 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2009-02-25 23:22:45 +08:00
|
|
|
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
2013-05-07 10:55:48 +08:00
|
|
|
<title>Clang - C++98, C++11, and C++14 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 }
|
2012-02-15 06:39:23 +08:00
|
|
|
.svn { 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 }
|
2013-03-13 03:56:09 +08:00
|
|
|
span:target { background-color: #FFFFBB; outline: #DDDD55 solid thin; }
|
2011-11-05 18:11:36 +08:00
|
|
|
th { background-color: #FFDDAA }
|
2009-02-15 04:20:19 +08:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!--#include virtual="menu.html.incl"-->
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
<!--*************************************************************************-->
|
2013-04-20 01:27:48 +08:00
|
|
|
<h1>C++98, C++11, and C++14 Support in Clang</h1>
|
2009-02-15 04:20:19 +08:00
|
|
|
<!--*************************************************************************-->
|
2009-06-28 03:33:58 +08:00
|
|
|
<p>Last updated: $Date$</p>
|
2009-02-15 04:20:19 +08:00
|
|
|
|
2012-02-25 02:42:08 +08:00
|
|
|
<h2 id="cxx98">C++98 implementation status</h2>
|
|
|
|
|
2011-07-22 01:46:15 +08:00
|
|
|
<p>Clang currently implements all of the ISO C++ 1998 standard
|
|
|
|
(including the defects addressed in the ISO C++ 2003 standard)
|
2013-05-07 10:55:48 +08:00
|
|
|
except for <tt>export</tt> (which has been removed in C++11)
|
2011-07-22 01:46:15 +08:00
|
|
|
and is considered a production-quality C++ compiler. The <a
|
|
|
|
href="http://llvm.org/bugs/">LLVM bug tracker</a> contains a Clang
|
|
|
|
C++ component that tracks known Clang C++ bugs.</p>
|
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
|
|
|
|
2013-04-20 01:00:31 +08:00
|
|
|
<p>Clang implements all of the <a
|
|
|
|
href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=50372">ISO
|
|
|
|
C++ 2011 standard</a>. The following table describes the Clang version
|
|
|
|
in which each feature became available.</p>
|
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
|
|
|
|
with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++, but
|
|
|
|
patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a>
|
2012-10-23 08:32:41 +08:00
|
|
|
work with Clang in C++11 mode. Patches are also needed to make
|
2012-10-05 06:23:07 +08:00
|
|
|
<a href="libstdc++4.6-clang11.patch">libstdc++-4.6</a>,
|
2012-10-23 08:32:41 +08:00
|
|
|
and <a href="libstdc++4.7-clang11.patch">libstdc++-4.7</a> work with Clang
|
2013-04-20 01:00:31 +08:00
|
|
|
releases prior to version 3.2 in C++11 mode. <tt>thread_local</tt> support
|
|
|
|
currently requires g++-4.8's C++ runtime library.</p>
|
2011-03-30 06:27:50 +08:00
|
|
|
|
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>
|
|
|
|
<td>Rvalue references</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html">N2118</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> Rvalue references for <code>*this</code></td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1610.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2756.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf">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>
|
|
|
|
<td>Initializer lists</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm">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>
|
|
|
|
<tr>
|
|
|
|
<td>Static assertions</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1720.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1737.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2546.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm">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>
|
2012-02-23 11:02:32 +08:00
|
|
|
<td>Lambda expressions</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
<td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf">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>
|
|
|
|
<tr>
|
|
|
|
<td>Declared type of an expression</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2343.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3276.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#226">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2634.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1987.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347.pdf">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>
|
2012-03-15 07:13:10 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2764.pdf">N2764</a>
|
|
|
|
<br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1206">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>
|
|
|
|
<td>Generalized attributes</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">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>
|
|
|
|
<td>Generalized constant expressions</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">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>
|
|
|
|
<tr>
|
|
|
|
<td>Alignment support</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf">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>
|
|
|
|
<!-- Skipped N1627: Conditionally-support behavior -->
|
|
|
|
<!-- Skipped N1727: Changing Undefined Behavior into Diagnosable Errors -->
|
|
|
|
<tr>
|
|
|
|
<td>Delegating constructors</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf">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>
|
|
|
|
<td>Inheriting constructors</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm">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>
|
|
|
|
<tr>
|
|
|
|
<td>Explicit conversion operators</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2249.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">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>
|
2011-10-15 07:21:49 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2342.htm">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>
|
2011-10-29 03:44:09 +08:00
|
|
|
<td>Defaulted functions</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">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>
|
|
|
|
<tr>
|
|
|
|
<td>Deleted functions</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1791.pdf">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>
|
2012-02-25 02:37:14 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2253.html">N2253</a>
|
|
|
|
<br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#850">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2535.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm">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>
|
|
|
|
<td>Range-based for</td>
|
|
|
|
<td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">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>
|
|
|
|
<tr>
|
|
|
|
<td>Explicit virtual overrides</td>
|
|
|
|
<td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm">N2928</a>
|
2012-02-25 02:37:14 +08:00
|
|
|
<br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm">N3206</a>
|
|
|
|
<br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2670.htm">N2670</a></td>
|
2012-03-11 11:06:00 +08:00
|
|
|
<td class="na" align="center">N/A</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Allowing move constructors to throw [noexcept]</td>
|
2011-11-02 23:13:40 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">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>
|
2011-11-02 23:13:40 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2748.html">N2748</a></td>
|
2013-03-13 03:56:09 +08:00
|
|
|
<td class="full" align="center">Clang 3.1 <a href="#n2748">(2)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Bidirectional Fences</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2752.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2429.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2664.htm">N2664</a></td>
|
2013-03-13 03:56:09 +08:00
|
|
|
<td class="full" align="center">Clang 3.2 <a href="#n2664">(3)</a></td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Propagating exceptions</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html">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>Abandoning a process and at_quick_exit</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2440.htm">N2440</a></td>
|
2012-04-13 09:02:19 +08:00
|
|
|
<td class="na" align="center">N/A</td>
|
2011-10-15 07:21:49 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Allow atomics use in signal handlers</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2547.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2659.htm">N2659</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>Dynamic initialization and destruction with concurrency</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2340.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1811.pdf">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>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1988.pdf">N1988</a></td>
|
2013-03-19 05:44:56 +08:00
|
|
|
<td class="na" align="center">N/A <a href="#n1988">(4)</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>
|
2013-03-13 03:56:09 +08:00
|
|
|
<span id="n2748">(2): All compare-exchange operations are emitted as
|
2013-03-19 05:57:52 +08:00
|
|
|
strong compare-exchanges.</span><br>
|
2013-03-13 03:56:09 +08:00
|
|
|
<span id="n2664">(3): <code>memory_order_consume</code> is lowered to
|
2013-03-19 05:57:52 +08:00
|
|
|
<code>memory_order_acquire</code>.</span><br>
|
2013-03-19 05:44:56 +08:00
|
|
|
<span id="n1988">(4): <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>
|
|
|
|
|
2013-04-20 01:27:48 +08:00
|
|
|
<h2 id="cxx14">C++1y implementation status</h2>
|
|
|
|
|
|
|
|
<p>Clang is introducing support for the upcoming C++ language standard,
|
|
|
|
provisionally named C++1y. The following table describes which C++1y features
|
|
|
|
have been implemented in Clang and in which Clang version they became
|
|
|
|
available.</p>
|
|
|
|
|
2013-05-07 10:55:48 +08:00
|
|
|
<p>You can use Clang in C++1y mode with the <code>-std=c++1y</code> option.</p>
|
2013-04-20 21:22:50 +08:00
|
|
|
|
2013-04-20 01:27:48 +08:00
|
|
|
<table width="689" border="1" cellspacing="0">
|
|
|
|
<tr>
|
|
|
|
<th>Language Feature</th>
|
|
|
|
<th>C++1y Proposal</th>
|
|
|
|
<th>Available in Clang?</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Tweak to certain C++ contextual conversions</td>
|
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3323.pdf">N3323</a></td>
|
2013-06-17 13:37:15 +08:00
|
|
|
<td class="svn" align="center">SVN</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:44:32 +08:00
|
|
|
<td>Binary literals</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3472.pdf">N3472</a></td>
|
2013-04-20 04:47:20 +08:00
|
|
|
<td class="full" align="center">Yes</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
2013-04-27 00:15:35 +08:00
|
|
|
<tr>
|
|
|
|
<td>decltype(auto)</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td rowspan=2 style="vertical-align:middle"><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3638.html">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>
|
2013-05-12 11:09:35 +08:00
|
|
|
<td class="svn" align="center">SVN</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 21:20:33 +08:00
|
|
|
<td>Runtime-sized arrays with automatic storage duration</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3639.html">N3639</a></td>
|
2013-05-04 15:02:10 +08:00
|
|
|
<td class="partial" align="center">Partial</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:47:36 +08:00
|
|
|
<td>Initialized lambda captures</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3648.html">N3648</a></td>
|
2013-04-20 01:27:48 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:58:57 +08:00
|
|
|
<td>Generic lambdas</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3649.html">N3649</a></td>
|
2013-05-04 15:12:37 +08:00
|
|
|
<td class="partial" align="center">
|
|
|
|
No [<a href="https://github.com/faisalv/clang-glambda">WIP</a>]</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:58:57 +08:00
|
|
|
<td>Variable templates</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3651.pdf">N3651</a></td>
|
2013-04-20 01:27:48 +08:00
|
|
|
<td class="none" align="center">No</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-20 20:49:36 +08:00
|
|
|
<td>Relaxing requirements on constexpr functions</td>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html">N3652</a></td>
|
2013-05-04 15:02:10 +08:00
|
|
|
<td class="partial" align="center">Partial</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>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html">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>
|
2013-05-10 02:53:17 +08:00
|
|
|
<td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html">N3664</a></td>
|
2013-05-13 07:39:32 +08:00
|
|
|
<td class="partial" align="center">Partial</td>
|
2013-04-20 01:27:48 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2009-02-15 04:20:19 +08:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|