Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 1 | <!DOCTYPE html> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 4 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 5 | <title>Clang - C++1z, C++14, C++11 and C++98 Status</title> |
Gabor Greif | dd4ddf1 | 2009-02-25 15:22:45 | [diff] [blame] | 6 | <link type="text/css" rel="stylesheet" href="menu.css"> |
| 7 | <link type="text/css" rel="stylesheet" href="content.css"> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 8 | <style type="text/css"> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 9 | .none { background-color: #FFCCCC } |
Richard Smith | 452d6b0 | 2013-05-04 07:02:10 | [diff] [blame] | 10 | .partial { background-color: #FFE0B0 } |
Richard Smith | b9a7efd | 2012-02-14 22:39:23 | [diff] [blame] | 11 | .svn { background-color: #FFFF99 } |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 12 | .full { background-color: #CCFF99 } |
Richard Smith | 6d244d7 | 2012-03-11 03:06:00 | [diff] [blame] | 13 | .na { background-color: #DDDDDD } |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 14 | span:target { background-color: #FFFFBB; outline: #DDDD55 solid thin; } |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 15 | th { background-color: #FFDDAA } |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 16 | td { vertical-align: middle } |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 17 | </style> |
| 18 | </head> |
| 19 | <body> |
| 20 | |
| 21 | <!--#include virtual="menu.html.incl"--> |
| 22 | |
| 23 | <div id="content"> |
| 24 | |
| 25 | <!--*************************************************************************--> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 26 | <h1>C++ Support in Clang</h1> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 27 | <!--*************************************************************************--> |
Douglas Gregor | 0799d91 | 2009-06-27 19:33:58 | [diff] [blame] | 28 | <p>Last updated: $Date$</p> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 29 | |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 30 | <p>Clang fully implements all published ISO C++ standards (<a |
| 31 | href="#cxx98">C++98 / C++03</a>, <a |
| 32 | href="#cxx11">C++11</a>, and <a |
| 33 | href="#cxx14">C++14</a>), and most of the upcoming <a |
| 34 | href="#cxx17">C++1z</a> standard. |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 35 | |
Richard Smith | 6058634 | 2013-12-09 08:52:23 | [diff] [blame] | 36 | <p>The Clang community is continually striving to improve C++ standards |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 37 | compliance between releases by submitting and tracking <a |
| 38 | href="cxx_dr_status.html">C++ Defect Reports</a> and implementing resolutions |
| 39 | as they become available.</p> |
| 40 | |
| 41 | <p>Experimental work is also under way to implement <a href="#ts">C++ Technical |
| 42 | Specifications</a> that will help drive the future of the C++ programming |
| 43 | language.</p> |
| 44 | |
Richard Smith | 6058634 | 2013-12-09 08:52:23 | [diff] [blame] | 45 | <p>The <a href="http://llvm.org/bugs/">LLVM bug tracker</a> contains Clang |
| 46 | C++ components that track known bugs with Clang's language conformance in |
| 47 | each language mode.</p> |
| 48 | |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 49 | <h2 id="cxx98">C++98 implementation status</h2> |
| 50 | |
Alp Toker | 05f8943 | 2013-12-06 06:35:49 | [diff] [blame] | 51 | <p>Clang implements all of the ISO C++ 1998 standard |
Douglas Gregor | 17aa45d | 2011-07-21 17:46:15 | [diff] [blame] | 52 | (including the defects addressed in the ISO C++ 2003 standard) |
Richard Smith | 707e3ba | 2014-06-22 16:00:05 | [diff] [blame] | 53 | except for <tt>export</tt> (which was removed in C++11). |
Douglas Gregor | bb26a92 | 2010-02-05 23:51:14 | [diff] [blame] | 54 | |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 55 | <h2 id="cxx11">C++11 implementation status</h2> |
Chris Lattner | 6fe3748 | 2010-05-21 20:59:40 | [diff] [blame] | 56 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 57 | <p>Clang 3.3 and later implement all of the <a |
| 58 | href="http://www.iso.org/iso/catalogue_detail.htm?csnumber=50372">ISO |
| 59 | C++ 2011 standard</a>. |
Chris Lattner | 6fe3748 | 2010-05-21 20:59:40 | [diff] [blame] | 60 | |
Richard Smith | 531c9a0 | 2013-03-10 00:11:00 | [diff] [blame] | 61 | <p>By default, Clang builds C++ code according to the C++98 standard, with many |
| 62 | C++11 features accepted as extensions. You can use Clang in C++11 mode with the |
| 63 | <code>-std=c++11</code> option. Clang's C++11 mode can be used |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 64 | with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++. |
Jeffrey Yasskin | cb40757 | 2011-03-29 22:27:50 | [diff] [blame] | 65 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 66 | <details> |
| 67 | <summary>List of features and minimum Clang version with support</summary> |
| 68 | |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 69 | <table width="689" border="1" cellspacing="0"> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 70 | <tr> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 71 | <th>Language Feature</th> |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 72 | <th>C++11 Proposal</th> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 73 | <th>Available in Clang?</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 74 | </tr> |
| 75 | <tr> |
| 76 | <td>Rvalue references</td> |
| 77 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html">N2118</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 78 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 79 | </tr> |
| 80 | <tr> |
| 81 | <td> Rvalue references for <code>*this</code></td> |
| 82 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm">N2439</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 83 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 84 | </tr> |
| 85 | <tr> |
| 86 | <td>Initialization of class objects by rvalues</td> |
| 87 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1610.html">N1610</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 88 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 89 | </tr> |
| 90 | <tr> |
| 91 | <td>Non-static data member initializers</td> |
| 92 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2756.htm">N2756</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 93 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 94 | </tr> |
| 95 | <tr> |
| 96 | <td>Variadic templates</td> |
| 97 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf">N2242</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 98 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 99 | </tr> |
| 100 | <tr> |
| 101 | <td> Extending variadic template template parameters</td> |
| 102 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf">N2555</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 103 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 104 | </tr> |
| 105 | <tr> |
| 106 | <td>Initializer lists</td> |
| 107 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm">N2672</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 108 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 109 | </tr> |
| 110 | <tr> |
| 111 | <td>Static assertions</td> |
| 112 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1720.html">N1720</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 113 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 114 | </tr> |
| 115 | <tr> |
| 116 | <td><code>auto</code>-typed variables</td> |
| 117 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf">N1984</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 118 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 119 | </tr> |
| 120 | <tr> |
| 121 | <td> Multi-declarator <code>auto</code></td> |
| 122 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1737.pdf">N1737</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 123 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 124 | </tr> |
| 125 | <tr> |
| 126 | <td> Removal of auto as a storage-class specifier</td> |
| 127 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2546.htm">N2546</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 128 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 129 | </tr> |
| 130 | <tr> |
| 131 | <td> New function declarator syntax</td> |
| 132 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm">N2541</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 133 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 134 | </tr> |
| 135 | <tr> |
Douglas Gregor | 34b2e8b | 2012-02-23 03:02:32 | [diff] [blame] | 136 | <td>Lambda expressions</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 137 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf">N2927</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 138 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 139 | </tr> |
| 140 | <tr> |
| 141 | <td>Declared type of an expression</td> |
| 142 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2343.pdf">N2343</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 143 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 144 | </tr> |
| 145 | <tr> |
Douglas Gregor | 0598962 | 2012-04-10 20:00:33 | [diff] [blame] | 146 | <td> Incomplete return types</td> |
| 147 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3276.pdf">N3276</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 148 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 0598962 | 2012-04-10 20:00:33 | [diff] [blame] | 149 | </tr> |
| 150 | <tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 151 | <td>Right angle brackets</td> |
| 152 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html">N1757</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 153 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 154 | </tr> |
| 155 | <tr> |
| 156 | <td>Default template arguments for function templates</td> |
| 157 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#226">DR226</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 158 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 159 | </tr> |
| 160 | <tr> |
| 161 | <td>Solving the SFINAE problem for expressions</td> |
| 162 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2634.html">DR339</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 163 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 164 | </tr> |
| 165 | <tr> |
| 166 | <td>Alias templates</td> |
| 167 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf">N2258</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 168 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 169 | </tr> |
| 170 | <tr> |
| 171 | <td>Extern templates</td> |
| 172 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1987.htm">N1987</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 173 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 174 | </tr> |
| 175 | <tr> |
| 176 | <td>Null pointer constant</td> |
| 177 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf">N2431</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 178 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 179 | </tr> |
| 180 | <tr> |
| 181 | <td>Strongly-typed enums</td> |
| 182 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347.pdf">N2347</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 183 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 184 | </tr> |
| 185 | <tr> |
| 186 | <td>Forward declarations for enums</td> |
Richard Smith | 4b38ded | 2012-03-14 23:13:10 | [diff] [blame] | 187 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2764.pdf">N2764</a> |
| 188 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1206">DR1206</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 189 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 190 | </tr> |
| 191 | <tr> |
Richard Smith | 3dd73db | 2014-01-17 00:11:48 | [diff] [blame] | 192 | <td>Standardized attribute syntax</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 193 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2761.pdf">N2761</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 194 | <td class="full" align="center">Clang 3.3 <a href="#n2761">(1)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 195 | </tr> |
| 196 | <tr> |
| 197 | <td>Generalized constant expressions</td> |
| 198 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 199 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 200 | </tr> |
| 201 | <tr> |
| 202 | <td>Alignment support</td> |
| 203 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2341.pdf">N2341</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 204 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 205 | </tr> |
Richard Smith | 7e34fbd | 2014-03-14 21:21:24 | [diff] [blame] | 206 | <tr> |
| 207 | <td>Conditionally-support behavior</td> |
| 208 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1627.pdf">N1627</a></td> |
| 209 | <td class="full" align="center">Clang 2.9</td> |
| 210 | </tr> |
| 211 | <tr> |
| 212 | <td>Changing undefined behavior into diagnosable errors</td> |
| 213 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1727.pdf">N1727</a></td> |
| 214 | <td class="full" align="center">Clang 2.9</td> |
| 215 | </tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 216 | <tr> |
| 217 | <td>Delegating constructors</td> |
| 218 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf">N1986</a></td> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 219 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 220 | </tr> |
| 221 | <tr> |
| 222 | <td>Inheriting constructors</td> |
| 223 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm">N2540</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 224 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 225 | </tr> |
| 226 | <tr> |
| 227 | <td>Explicit conversion operators</td> |
| 228 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2437.pdf">N2437</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 229 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 230 | </tr> |
| 231 | <tr> |
| 232 | <td>New character types</td> |
| 233 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2249.html">N2249</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 234 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 235 | </tr> |
| 236 | <tr> |
| 237 | <td>Unicode string literals</td> |
| 238 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">N2442</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 239 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 240 | </tr> |
| 241 | <tr> |
| 242 | <td>Raw string literals</td> |
| 243 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm">N2442</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 244 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 245 | </tr> |
| 246 | <tr> |
Richard Smith | 2a70e65 | 2012-03-09 22:27:51 | [diff] [blame] | 247 | <td>Universal character names in literals</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 248 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html">N2170</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 249 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 250 | </tr> |
| 251 | <tr> |
| 252 | <td>User-defined literals</td> |
| 253 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf">N2765</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 254 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 255 | </tr> |
| 256 | <tr> |
| 257 | <td>Standard Layout Types</td> |
| 258 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2342.htm">N2342</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 259 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 260 | </tr> |
| 261 | <tr> |
Douglas Gregor | 7ff1e7e | 2011-10-28 19:44:09 | [diff] [blame] | 262 | <td>Defaulted functions</td> |
| 263 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">N2346</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 264 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 7ff1e7e | 2011-10-28 19:44:09 | [diff] [blame] | 265 | </tr> |
| 266 | <tr> |
| 267 | <td>Deleted functions</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 268 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm">N2346</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 269 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 270 | </tr> |
| 271 | <tr> |
| 272 | <td>Extended friend declarations</td> |
| 273 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1791.pdf">N1791</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 274 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 275 | </tr> |
| 276 | <tr> |
| 277 | <td>Extending <code>sizeof</code></td> |
Richard Smith | 4e83762 | 2012-02-24 18:37:14 | [diff] [blame] | 278 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2253.html">N2253</a> |
| 279 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#850">DR850</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 280 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 281 | </tr> |
| 282 | <tr> |
| 283 | <td>Inline namespaces</td> |
| 284 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2535.htm">N2535</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 285 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 286 | </tr> |
| 287 | <tr> |
| 288 | <td>Unrestricted unions</td> |
| 289 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf">N2544</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 290 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 291 | </tr> |
| 292 | <tr> |
| 293 | <td>Local and unnamed types as template arguments</td> |
| 294 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm">N2657</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 295 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 296 | </tr> |
| 297 | <tr> |
| 298 | <td>Range-based for</td> |
| 299 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html">N2930</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 300 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 301 | </tr> |
| 302 | <tr> |
| 303 | <td>Explicit virtual overrides</td> |
| 304 | <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2928.htm">N2928</a> |
Richard Smith | 4e83762 | 2012-02-24 18:37:14 | [diff] [blame] | 305 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm">N3206</a> |
| 306 | <br><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3272.htm">N3272</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 307 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 308 | </tr> |
| 309 | <tr> |
| 310 | <td>Minimal support for garbage collection and reachability-based leak detection</td> |
| 311 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2670.htm">N2670</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 312 | <td class="na" align="center">N/A <a href="#n2670">(2)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 313 | </tr> |
| 314 | <tr> |
| 315 | <td>Allowing move constructors to throw [noexcept]</td> |
David Blaikie | 5036161 | 2011-11-02 15:13:40 | [diff] [blame] | 316 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">N3050</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 317 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 318 | </tr> |
| 319 | <tr> |
| 320 | <td>Defining move special member functions</td> |
David Blaikie | 5036161 | 2011-11-02 15:13:40 | [diff] [blame] | 321 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html">N3053</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 322 | <td class="full" align="center">Clang 3.0</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 323 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 324 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 325 | <tr class="separator"> |
Benjamin Kramer | 1c9e158 | 2011-11-05 10:11:36 | [diff] [blame] | 326 | <th align="center" colspan="3">Concurrency</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 327 | </tr> |
| 328 | <tr> |
| 329 | <td>Sequence points</td> |
| 330 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html">N2239</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 331 | <td class="full" align="center">Clang 3.3</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 332 | </tr> |
| 333 | <tr> |
| 334 | <td>Atomic operations</td> |
| 335 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 336 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 337 | </tr> |
| 338 | <tr> |
| 339 | <td>Strong Compare and Exchange</td> |
| 340 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2748.html">N2748</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 341 | <td class="full" align="center">Clang 3.1 <a href="#n2748">(3)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 342 | </tr> |
| 343 | <tr> |
| 344 | <td>Bidirectional Fences</td> |
| 345 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2752.htm">N2752</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 346 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 347 | </tr> |
Douglas Gregor | 6b6e082 | 2010-12-21 05:43:31 | [diff] [blame] | 348 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 349 | <tr> |
| 350 | <td>Memory model</td> |
| 351 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2429.htm">N2429</a></td> |
Richard Smith | bc4fc77 | 2013-01-29 04:55:18 | [diff] [blame] | 352 | <td class="full" align="center">Clang 3.2</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 353 | </tr> |
| 354 | <tr> |
| 355 | <td>Data-dependency ordering: atomics and memory model</td> |
| 356 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2664.htm">N2664</a></td> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 357 | <td class="full" align="center">Clang 3.2 <a href="#n2664">(4)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 358 | </tr> |
| 359 | <tr> |
| 360 | <td>Propagating exceptions</td> |
| 361 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html">N2179</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 362 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 363 | </tr> |
| 364 | <tr> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 365 | <td>Allow atomics use in signal handlers</td> |
| 366 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2547.htm">N2547</a></td> |
Richard Smith | 607d631 | 2012-05-23 01:38:11 | [diff] [blame] | 367 | <td class="full" align="center">Clang 3.1</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 368 | </tr> |
| 369 | <tr> |
| 370 | <td>Thread-local storage</td> |
| 371 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2659.htm">N2659</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 372 | <td class="full" align="center">Clang 3.3 <a href="#n2659">(5)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 373 | </tr> |
| 374 | <tr> |
| 375 | <td>Dynamic initialization and destruction with concurrency</td> |
| 376 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm">N2660</a></td> |
Richard Smith | 537a834 | 2013-02-22 09:31:00 | [diff] [blame] | 377 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 378 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 379 | |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 380 | <tr class="separator"> |
Richard Smith | 18743de | 2012-02-24 18:42:08 | [diff] [blame] | 381 | <th align="center" colspan="3">C99 Features in C++11</th> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 382 | </tr> |
| 383 | <tr> |
| 384 | <td><code>__func__</code> predefined identifier</td> |
| 385 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2340.htm">N2340</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 386 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 387 | </tr> |
| 388 | <tr> |
| 389 | <td>C99 preprocessor</td> |
| 390 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm">N1653</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 391 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 392 | </tr> |
| 393 | <tr> |
| 394 | <td><code>long long</code></td> |
| 395 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1811.pdf">N1811</a></td> |
Michael J. Spencer | e73bd64 | 2011-11-02 06:29:37 | [diff] [blame] | 396 | <td class="full" align="center">Clang 2.9</td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 397 | </tr> |
| 398 | <tr> |
| 399 | <td>Extended integral types</td> |
| 400 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1988.pdf">N1988</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 401 | <td class="na" align="center">N/A <a href="#n1988">(6)</a></td> |
Douglas Gregor | 1f64b59 | 2011-10-14 23:21:49 | [diff] [blame] | 402 | </tr> |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 403 | </table> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 404 | |
| 405 | <p> |
| 406 | <span id="n2761">(1): The <code>[[carries_dependency]]</code> attribute |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 407 | has no effect.</span><br> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 408 | <span id="n2670">(2): No compiler changes are required for an implementation |
| 409 | such as Clang that does not provide garbage collection.</span><br> |
| 410 | <span id="n2748">(3): All compare-exchange operations are emitted as |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 411 | strong compare-exchanges.</span><br> |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 412 | <span id="n2664">(4): <code>memory_order_consume</code> is lowered to |
Richard Smith | 38546ed | 2013-03-18 21:57:52 | [diff] [blame] | 413 | <code>memory_order_acquire</code>.</span><br> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 414 | <span id="n2659">(5): <code>thread_local</code> support |
| 415 | requires a C++ runtime library providing <code>__cxa_thread_atexit</code>, such |
| 416 | as <a href="http://libcxxabi.llvm.org">libc++abi</a> 3.6 or later, |
| 417 | or libsupc++ 4.8 or later.</span><br> |
| 418 | <span id="n1988">(6): No compiler changes are required for an implementation |
Richard Smith | d997cce | 2014-03-14 20:26:09 | [diff] [blame] | 419 | such as Clang that does not provide any extended integer types. |
| 420 | <code>__int128</code> is not treated as an extended integer type, |
| 421 | because changing <code>intmax_t</code> would be an ABI-incompatible |
| 422 | change.</span> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 423 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 424 | </details> |
Richard Smith | 9deb9d9 | 2013-03-12 19:56:09 | [diff] [blame] | 425 | |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 426 | <h2 id="cxx14">C++14 implementation status</h2> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 427 | |
Richard Smith | 0188110 | 2016-09-28 19:22:36 | [diff] [blame] | 428 | <p>Clang 3.4 and later implement all of the <a |
| 429 | href="http://www.iso.org/iso/catalogue_detail.htm?csnumber=64029">ISO |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 430 | C++ 2014 standard</a>. |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 431 | |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 432 | <p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option |
Richard Smith | 1b88632 | 2014-08-31 04:18:54 | [diff] [blame] | 433 | (use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p> |
Richard Smith | 4cf9a1e | 2013-04-20 13:22:50 | [diff] [blame] | 434 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 435 | <details> |
| 436 | <summary>List of features and minimum Clang version with support</summary> |
| 437 | |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 438 | <table width="689" border="1" cellspacing="0"> |
| 439 | <tr> |
| 440 | <th>Language Feature</th> |
Richard Smith | 20f3767 | 2014-08-31 04:17:48 | [diff] [blame] | 441 | <th>C++14 Proposal</th> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 442 | <th>Available in Clang?</th> |
| 443 | </tr> |
| 444 | <tr> |
| 445 | <td>Tweak to certain C++ contextual conversions</td> |
| 446 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3323.pdf">N3323</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 447 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 448 | </tr> |
| 449 | <tr> |
Richard Smith | 0fa4fce | 2013-04-20 12:44:32 | [diff] [blame] | 450 | <td>Binary literals</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 451 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3472.pdf">N3472</a></td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 452 | <td class="full" align="center">Clang 2.9</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 453 | </tr> |
| 454 | <tr> |
Richard Smith | 74aeef5 | 2013-04-26 16:15:35 | [diff] [blame] | 455 | <td>decltype(auto)</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 456 | <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> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 457 | <td class="full" align="center">Clang 3.3</td> |
Richard Smith | 74aeef5 | 2013-04-26 16:15:35 | [diff] [blame] | 458 | </tr> |
| 459 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 460 | <td>Return type deduction for normal functions</td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 461 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 462 | </tr> |
Richard Smith | 0fa4fce | 2013-04-20 12:44:32 | [diff] [blame] | 463 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 464 | <td>Initialized lambda captures</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 465 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3648.html">N3648</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 466 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 467 | </tr> |
| 468 | <tr> |
Richard Smith | 7898d7b | 2013-04-20 12:58:57 | [diff] [blame] | 469 | <td>Generic lambdas</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 470 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3649.html">N3649</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 471 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 472 | </tr> |
| 473 | <tr> |
Richard Smith | 7898d7b | 2013-04-20 12:58:57 | [diff] [blame] | 474 | <td>Variable templates</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 475 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3651.pdf">N3651</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 476 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 477 | </tr> |
| 478 | <tr> |
Richard Smith | 7feda2f | 2013-04-20 12:49:36 | [diff] [blame] | 479 | <td>Relaxing requirements on constexpr functions</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 480 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html">N3652</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 481 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 482 | </tr> |
| 483 | <tr> |
Richard Smith | 5db8b28 | 2013-04-20 12:47:36 | [diff] [blame] | 484 | <td>Member initializers and aggregates</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 485 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3653.html">N3653</a></td> |
Richard Smith | 9924772 | 2013-06-17 23:54:23 | [diff] [blame] | 486 | <td class="full" align="center">Clang 3.3</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 487 | </tr> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 488 | <tr> |
Richard Smith | d3a7386 | 2013-04-20 12:57:49 | [diff] [blame] | 489 | <td>Clarifying memory allocation</td> |
Richard Smith | f2f6e114 | 2013-05-09 18:53:17 | [diff] [blame] | 490 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3664.html">N3664</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 491 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 492 | </tr> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 493 | <tr> |
| 494 | <td><tt>[[deprecated]]</tt> attribute</td> |
| 495 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3760.html">N3760</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 496 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 497 | </tr> |
| 498 | <tr> |
| 499 | <td>Single quotation mark as digit separator</td> |
Richard Smith | 2d1d3ca | 2013-11-05 08:27:00 | [diff] [blame] | 500 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3781.pdf">N3781</a></td> |
Richard Smith | 7fe8962 | 2014-02-03 06:58:08 | [diff] [blame] | 501 | <td class="full" align="center">Clang 3.4</td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 502 | </tr> |
| 503 | <tr> |
Benjamin Kramer | 8ba47d0 | 2013-09-27 19:35:09 | [diff] [blame] | 504 | <td>C++ Sized Deallocation</td> |
Richard Smith | 2d1d3ca | 2013-11-05 08:27:00 | [diff] [blame] | 505 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3778.html">N3778</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 506 | <td class="full" align="center">Clang 3.4 <a href="#n3778">(7)</a></td> |
Richard Smith | 3ca005b | 2013-09-27 19:11:33 | [diff] [blame] | 507 | </tr> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 508 | </table> |
Reid Kleckner | 7ffc3fb | 2015-03-20 00:31:07 | [diff] [blame] | 509 | |
Larisse Voufo | ee3c1b2 | 2015-02-19 04:34:13 | [diff] [blame] | 510 | <p> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 511 | <span id="n3778">(7): In Clang 3.7 and later, sized deallocation is only enabled |
Reid Kleckner | 7ffc3fb | 2015-03-20 00:31:07 | [diff] [blame] | 512 | if the user passes the <code>-fsized-deallocation</code> flag. The user must |
| 513 | supply definitions of the sized deallocation functions, either by providing them |
| 514 | explicitly or by using a C++ standard library that does. <code>libstdc++</code> |
| 515 | added these functions in version 5.0, and <code>libc++</code> added them in |
| 516 | version 3.7. |
Larisse Voufo | ee3c1b2 | 2015-02-19 04:34:13 | [diff] [blame] | 517 | </span> |
| 518 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 519 | </details> |
Richard Smith | 9172520 | 2013-04-19 17:27:48 | [diff] [blame] | 520 | |
Richard Smith | 76b9f23 | 2013-11-07 06:41:26 | [diff] [blame] | 521 | <h2 id="cxx17">C++1z implementation status</h2> |
| 522 | |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 523 | <p>Clang has <b>experimental</b> support for some proposed features of |
| 524 | the C++ standard following C++14, provisionally named C++1z. |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 525 | Note that support for these features may change or be removed without notice, |
| 526 | as the draft C++1z standard evolves. |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 527 | |
Richard Smith | 76b9f23 | 2013-11-07 06:41:26 | [diff] [blame] | 528 | <p>You can use Clang in C++1z mode with the <code>-std=c++1z</code> option.</p> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 529 | |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 530 | <details open> |
| 531 | <summary>List of features and minimum Clang version with support</summary> |
| 532 | |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 533 | <table width="689" border="1" cellspacing="0"> |
| 534 | <tr> |
| 535 | <th>Language Feature</th> |
| 536 | <th>C++1z Proposal</th> |
| 537 | <th>Available in Clang?</th> |
| 538 | </tr> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 539 | <!-- Issaquah 2014 papers --> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 540 | <tr> |
| 541 | <td><tt>static_assert</tt> with no message</td> |
| 542 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3928.pdf">N3928</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 543 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 544 | </tr> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 545 | <!-- Rapperswil papers --> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 546 | <tr> |
| 547 | <td>Disabling trigraph expansion by default</td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 548 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4086.html">N4086</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 549 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 550 | </tr> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 551 | <!-- |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 552 | <tr> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 553 | <td rowspan="2">Terse range-based for loops (removed from C++1z)</td> |
| 554 | <td rowspan="2"><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3994.htm">N3994</a></td> |
| 555 | <td class="none" align="center">Clang 3.5: Yes</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 556 | </tr> |
| 557 | <tr> |
Richard Smith | 83d3f15 | 2014-11-27 01:54:27 | [diff] [blame] | 558 | <td class="svn" align="center">SVN: No</td> |
| 559 | </tr> |
| 560 | --> |
| 561 | <tr> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 562 | <td><tt>typename</tt> in a template template parameter</td> |
| 563 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4051.html">N4051</a></td> |
Richard Smith | ee0a49c | 2014-09-11 17:30:32 | [diff] [blame] | 564 | <td class="full" align="center">Clang 3.5</td> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 565 | </tr> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 566 | <tr> |
| 567 | <td>New <tt>auto</tt> rules for direct-list-initialization |
| 568 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3922.html">N3922</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 569 | <td class="full" align="center">Clang 3.8 <a href="#n3922">(8)</a></td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 570 | </tr> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 571 | <!-- Urbana papers --> |
| 572 | <tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 573 | <td rowspan="2">Fold expressions</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 574 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4295.html">N4295</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 575 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 3e3a705 | 2014-11-08 06:08:42 | [diff] [blame] | 576 | </tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 577 | <tr> <!-- from Jacksonville --> |
| 578 | <td><a href="http://wg21.link/p0036r0">P0036R0</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 579 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 580 | </tr> |
Richard Smith | 3e3a705 | 2014-11-08 06:08:42 | [diff] [blame] | 581 | <tr> |
| 582 | <td><tt>u8</tt> character literals</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 583 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4267.html">N4267</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 584 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 0f0af19 | 2014-11-08 05:07:16 | [diff] [blame] | 585 | </tr> |
Richard Smith | 13307f5 | 2014-11-08 05:37:34 | [diff] [blame] | 586 | <tr> |
| 587 | <td>Nested namespace definition</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 588 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4230.html">N4230</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 589 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 13307f5 | 2014-11-08 05:37:34 | [diff] [blame] | 590 | </tr> |
Aaron Ballman | 730476b | 2014-11-08 15:33:35 | [diff] [blame] | 591 | <tr> |
| 592 | <td>Attributes for namespaces and enumerators</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 593 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4266.html">N4266</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 594 | <td class="full" align="center">Clang 3.6</td> |
Aaron Ballman | 730476b | 2014-11-08 15:33:35 | [diff] [blame] | 595 | </tr> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 596 | <tr> |
| 597 | <td>Allow constant evaluation for all non-type template arguments</td> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 598 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4268.html">N4268</a></td> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 599 | <td class="full" align="center">Clang 3.6</td> |
Richard Smith | 410cc89 | 2014-11-26 03:26:53 | [diff] [blame] | 600 | </tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 601 | <!-- Kona papers --> |
| 602 | <tr> |
| 603 | <td>Remove deprecated <tt>register</tt> storage class</td> |
| 604 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0001r1.html">P0001R1</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 605 | <td class="full" align="center">Clang 3.8</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 606 | </tr> |
| 607 | <tr> |
| 608 | <td>Remove deprecated <tt>bool</tt> increment</td> |
| 609 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0002r1.html">P0002R1</a></td> |
Richard Smith | 25dde97 | 2016-03-20 10:37:12 | [diff] [blame] | 610 | <td class="full" align="center">Clang 3.8</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 611 | </tr> |
| 612 | <tr> |
| 613 | <td>Make exception specifications part of the type system</td> |
| 614 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0012r1.html">P0012R1</a></td> |
Richard Smith | 6e5610f | 2016-11-01 01:34:46 | [diff] [blame] | 615 | <td class="svn" align="center">SVN <a href="#p0012">(9)</a></td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 616 | </tr> |
| 617 | <tr> |
Richard Smith | 4a0cd89 | 2015-11-26 02:16:37 | [diff] [blame] | 618 | <td><tt>__has_include</tt> in preprocessor conditionals</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 619 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0061.html">P0061R1</a></td> |
| 620 | <td class="full" align="center">Yes</td> |
| 621 | </tr> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 622 | <tr> |
| 623 | <td>New specification for inheriting constructors (<a href="cxx_dr_status.html#1941">DR1941</a> et al)</td> |
| 624 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html">P0136R1</a></td> |
Richard Smith | 6e5610f | 2016-11-01 01:34:46 | [diff] [blame] | 625 | <td class="full" align="center">Clang 3.9 <a href="#p0136">(10)</a></td> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 626 | </tr> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 627 | <!-- Jacksonville papers --> |
| 628 | <tr> |
| 629 | <td><tt>[[fallthrough]]</tt> attribute</td> |
| 630 | <td><a href="http://wg21.link/p0188r1">P0188R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 631 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 632 | </tr> |
| 633 | <tr> |
| 634 | <td><tt>[[nodiscard]]</tt> attribute</td> |
| 635 | <td><a href="http://wg21.link/p0189r1">P0189R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 636 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 637 | </tr> |
| 638 | <tr> |
| 639 | <td><tt>[[maybe_unused]]</tt> attribute</td> |
| 640 | <td><a href="http://wg21.link/p0212r1">P0212R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 641 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 642 | </tr> |
| 643 | <tr> |
| 644 | <td>Aggregate initialization of classes with base classes</td> |
| 645 | <td><a href="http://wg21.link/p0017r1">P0017R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 646 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 647 | </tr> |
| 648 | <tr> |
| 649 | <td><tt>constexpr</tt> lambda expressions</td> |
| 650 | <td><a href="http://wg21.link/p0170r1">P0170R1</a></td> |
| 651 | <td class="none" align="center">No</td> |
| 652 | </tr> |
| 653 | <tr> |
| 654 | <td>Differing <tt>begin</tt> and <tt>end</tt> types in range-based <tt>for</tt></td> |
| 655 | <td><a href="http://wg21.link/p0184r0">P0184R0</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 656 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 657 | </tr> |
| 658 | <tr> |
| 659 | <td>Lambda capture of <tt>*this</tt></td> |
| 660 | <td><a href="http://wg21.link/p0018r3">P0018R3</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 661 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 662 | </tr> |
| 663 | <tr> |
| 664 | <td>Direct-list-initialization of <tt>enum</tt>s</td> |
| 665 | <td><a href="http://wg21.link/p0138r2">P0138R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 666 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 667 | </tr> |
| 668 | <tr> |
| 669 | <td>Hexadecimal floating-point literals</td> |
| 670 | <td><a href="http://wg21.link/p0245r1">P0245R1</a></td> |
| 671 | <td class="full" align="center">Yes</td> |
| 672 | </tr> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 673 | <!-- Oulu papers --> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 674 | <tr> |
| 675 | <td>Using attribute namespaces without repetition</td> |
| 676 | <td><a href="http://wg21.link/p0028r4">P0028R4</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 677 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 678 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 679 | <tr> |
| 680 | <td>Dynamic memory allocation for over-aligned data</td> |
| 681 | <td><a href="http://wg21.link/p0035r4">P0035R4</a></td> |
Richard Smith | f5d8a75 | 2016-10-10 06:55:42 | [diff] [blame] | 682 | <td class="svn" align="center">SVN</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 683 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 684 | <tr> |
| 685 | <td>Template argument deduction for class templates</td> |
| 686 | <td><a href="http://wg21.link/p0091r3">P0091R3</a></td> |
| 687 | <td class="none" align="center">No</td> |
| 688 | </tr> |
| 689 | <tr> |
Richard Smith | 3a2dc6f0 | 2016-06-24 12:21:30 | [diff] [blame] | 690 | <td>Non-type template parameters with <tt>auto</tt> type</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 691 | <td><a href="http://wg21.link/p0127r2">P0127R2</a></td> |
Richard Smith | 27143d8 | 2016-09-29 00:08:05 | [diff] [blame] | 692 | <td class="svn" align="center">SVN</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 693 | </tr> |
| 694 | <tr> |
| 695 | <td>Guaranteed copy elision</td> |
| 696 | <td><a href="http://wg21.link/p0135r1">P0135R1</a></td> |
| 697 | <td class="none" align="center">No</td> |
| 698 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 699 | <tr> |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 700 | <td rowspan=2>Stricter expression evaluation order</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 701 | <td><a href="http://wg21.link/p0145r3">P0145R3</a></td> |
Richard Smith | 6e5610f | 2016-11-01 01:34:46 | [diff] [blame] | 702 | <td class="svn" align="center" rowspan=2>SVN <a href="#p0145">(11)</a></td> |
Richard Smith | 63497c6 | 2016-07-14 00:14:59 | [diff] [blame] | 703 | </tr> |
| 704 | <tr> |
| 705 | <td><a href="http://wg21.link/p0400r0">P0400R0</a></td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 706 | </tr> |
| 707 | <tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 708 | <td>Requirement to ignore unknown attributes</td> |
| 709 | <td><a href="http://wg21.link/p0283r2">P0283R2</a></td> |
| 710 | <td class="full" align="center">Yes</td> |
| 711 | </tr> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 712 | <tr> |
| 713 | <td><tt>constexpr</tt> <em>if-statement</em>s</td> |
| 714 | <td><a href="http://wg21.link/p0292r2">P0292R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 715 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | b130fe7 | 2016-06-23 19:16:49 | [diff] [blame] | 716 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 717 | <tr> |
| 718 | <td>Inline variables</td> |
| 719 | <td><a href="http://wg21.link/p0386r2">P0386R2</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 720 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 721 | </tr> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 722 | <tr> |
| 723 | <td>Structured bindings</td> |
| 724 | <td><a href="http://wg21.link/p0217r3">P0217R3</a></td> |
Richard Smith | 6ec6b24 | 2016-08-15 02:37:43 | [diff] [blame] | 725 | <td class="partial" align="center">Partial</td> |
Richard Smith | 6294a76 | 2016-10-22 01:35:34 | [diff] [blame] | 726 | <!-- We don't implement structured bindings of arrays yet, anticipating |
| 727 | this being removed from the working draft --> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 728 | </tr> |
| 729 | <tr> |
Richard Smith | 90ea9eb | 2016-06-24 14:23:32 | [diff] [blame] | 730 | <td>Separate variable and condition for <tt>if</tt> and <tt>switch</tt></td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 731 | <td><a href="http://wg21.link/p0305r1">P0305R1</a></td> |
Richard Smith | b1a268a | 2016-08-15 02:47:23 | [diff] [blame] | 732 | <td class="full" align="center">Clang 3.9</td> |
Richard Smith | 74f56e7 | 2016-06-24 11:20:31 | [diff] [blame] | 733 | </tr> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 734 | <!-- Issaquah 2016 papers --> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 735 | <tr> |
| 736 | <td>Matching template template parameters to compatible arguments</td> |
| 737 | <td><a href="http://wg21.link/p0522r0">P0522R0</a></td> |
Richard Smith | e0c7500 | 2016-11-11 23:46:25 | [diff] [blame^] | 738 | <td class="none" align="center">No <a href="#p0522">(12)</a></td> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 739 | </tr> |
Richard Smith | e0c7500 | 2016-11-11 23:46:25 | [diff] [blame^] | 740 | <!-- |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 741 | <tr> |
| 742 | <td>Removing deprecated dynamic exception specifications</td> |
| 743 | <td><a href="http://wg21.link/p0003r5">P0003R5</a></td> |
| 744 | <td class="none" align="center">No</td> |
| 745 | </tr> |
| 746 | <tr> |
| 747 | <td>Pack expansions in <em>using-declarations</em></td> |
| 748 | <td><a href="http://wg21.link/p0195r2">P0195R2</a></td> |
| 749 | <td class="none" align="center">No</td> |
| 750 | </tr> |
| 751 | <tr> |
| 752 | <td>A <tt>byte</tt> type definition</td> |
| 753 | <td><a href="http://wg21.link/p0298r2">P0298R2</a></td> |
| 754 | <td class="none" align="center">No</td> |
| 755 | </tr> |
| 756 | --> |
Richard Smith | cf31c6b | 2014-06-20 20:33:10 | [diff] [blame] | 757 | </table> |
Richard Smith | 76b9f23 | 2013-11-07 06:41:26 | [diff] [blame] | 758 | |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 759 | <p> |
Richard Smith | 952923b | 2016-02-09 22:48:14 | [diff] [blame] | 760 | <span id="n3922">(8): This is a backwards-incompatible change that is applied to |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 761 | all language versions that allow type deduction from <tt>auto</tt> |
| 762 | (per the request of the C++ committee). |
| 763 | In Clang 3.7, a warning is emitted for all cases that would change meaning. |
Richard Smith | 4a93c59 | 2016-06-28 20:37:43 | [diff] [blame] | 764 | </span><br> |
Richard Smith | 6e5610f | 2016-11-01 01:34:46 | [diff] [blame] | 765 | <span id="p0012">(9): Support for throwing a noexcept function pointer and |
| 766 | catching it as a non-noexcept function pointer requires an ABI library with |
| 767 | C++17 support. Currently, only libc++abi 4.0 provides this support, so this |
| 768 | portion of the feature is disabled by default. If you are using a sufficiently |
| 769 | recent ABI library, you can enable support for this feature with the |
| 770 | <code>-Xclang -mqualified-function-type-info</code> flag. This flag is likely |
| 771 | to be removed or replaced in future Clang releases. |
| 772 | </span><br> |
| 773 | <span id="p0136">(10): This is the resolution to a Defect Report, so is applied |
Richard Smith | 5179eb7 | 2016-06-28 19:03:57 | [diff] [blame] | 774 | to all language versions supporting inheriting constructors. |
Richard Smith | 762672a | 2016-09-28 19:09:10 | [diff] [blame] | 775 | </span><br> |
Richard Smith | 6e5610f | 2016-11-01 01:34:46 | [diff] [blame] | 776 | <span id="p0145">(11): Under the MS ABI, function parameters are destroyed from |
Richard Smith | a560ccf | 2016-09-29 21:30:12 | [diff] [blame] | 777 | left to right in the callee. As a result, function parameters in calls to |
Richard Smith | 762672a | 2016-09-28 19:09:10 | [diff] [blame] | 778 | <tt>operator<<</tt>, <tt>operator>></tt>, <tt>operator->*</tt>, |
| 779 | <tt>operator&&</tt>, <tt>operator||</tt>, and <tt>operator,</tt> |
Richard Smith | a560ccf | 2016-09-29 21:30:12 | [diff] [blame] | 780 | functions using expression syntax are no longer guaranteed to be destroyed in |
| 781 | reverse construction order in that ABI. |
Richard Smith | e0c7500 | 2016-11-11 23:46:25 | [diff] [blame^] | 782 | </span><br> |
| 783 | <span id="p0522">(12): This is the resolution to a Defect Report, so will be |
| 784 | applied to all language versions. |
Richard Smith | 5179eb7 | 2016-06-28 19:03:57 | [diff] [blame] | 785 | </span> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 786 | </p> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 787 | </details> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 788 | |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 789 | <h2 id="ts">Technical specifications and standing documents</h2> |
| 790 | |
| 791 | <p>ISO C++ also publishes a number of documents describing additional language |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 792 | and library features that are not part of standard C++.</p> |
| 793 | |
| 794 | <details open> |
| 795 | <summary>List of features and minimum Clang version with support</summary> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 796 | |
| 797 | <table width="689" border="1" cellspacing="0"> |
| 798 | <tr> |
| 799 | <th>Document</th> |
| 800 | <th>Latest draft</th> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 801 | <th>Compiler flag</th> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 802 | <th>Available in Clang?</th> |
| 803 | </tr> |
| 804 | <tr> |
Richard Smith | 6e4bedc | 2016-09-28 20:42:56 | [diff] [blame] | 805 | <td rowspan="3">SD-6: SG10 feature test recommendations</td> |
| 806 | <td rowspan="3"><a href="http://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations">SD-6</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 807 | <td rowspan="3">N/A</td> |
Richard Smith | 38af856 | 2014-11-12 21:16:38 | [diff] [blame] | 808 | <td class="full" align="center"> |
| 809 | Clang 3.4 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3745">N3745</a>)</br> |
| 810 | </td> |
| 811 | </tr> |
| 812 | <tr> |
Richard Smith | 42b1057 | 2015-11-11 01:36:17 | [diff] [blame] | 813 | <td class="full" align="center"> |
Benjamin Kramer | eb0ad45 | 2015-02-09 11:48:43 | [diff] [blame] | 814 | Clang 3.6 (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4200">N4200</a>)</a> |
Richard Smith | 38af856 | 2014-11-12 21:16:38 | [diff] [blame] | 815 | </td> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 816 | </tr> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 817 | <tr> |
| 818 | <td class="svn" align="center"> |
Richard Smith | 38d91d4 | 2016-09-28 20:26:06 | [diff] [blame] | 819 | SVN (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 820 | </td> |
| 821 | </tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 822 | <!-- FIXME: Implement latest recommendations. |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 823 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 824 | <td class="svn" align="center"> |
Richard Smith | b02043c | 2016-09-28 19:44:50 | [diff] [blame] | 825 | SVN (<a href="http://wg21.link/p0096r3">P0096R3</a>)</a> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 826 | </td> |
| 827 | </tr> |
| 828 | --> |
| 829 | <!-- No compiler support is known to be needed for: |
| 830 | * Concurrency TS |
| 831 | * Parallelism TS |
| 832 | * Ranges TS |
| 833 | * Networking TS |
| 834 | * File System TS |
| 835 | --> |
| 836 | <tr> |
| 837 | <td>[TS] Concepts</td> |
| 838 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0121r0.pdf">P0121R0</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 839 | <td></td> |
| 840 | <td class="none" align="center">WIP</td> |
| 841 | </tr> |
| 842 | <tr> |
| 843 | <td>[DRAFT TS] Coroutines</td> |
Richard Smith | 5a20d7e | 2016-11-11 22:48:43 | [diff] [blame] | 844 | <td><a href="http://wg21.link/p0057r7">P0057R7</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 845 | <td></td> |
| 846 | <td class="none" align="center">WIP</td> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 847 | </tr> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 848 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 849 | <td>[TS] Library Fundamentals, Version 1 (invocation type traits)</td> |
Richard Smith | ea26041 | 2015-11-05 22:21:52 | [diff] [blame] | 850 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4480.html">N4480</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 851 | <td>N/A</td> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 852 | <td class="none" align="center">No</td> |
| 853 | </tr> |
| 854 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 855 | <td>[DRAFT TS] Library Fundamentals, Version 2 (<tt>source_location</tt>)</td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 856 | <td><a href="http://wg21.link/n4600">N4600</a></td> |
| 857 | <td>N/A</td> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 858 | <td class="none" align="center">No</td> |
| 859 | </tr> |
| 860 | <tr> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 861 | <td>[DRAFT TS] Modules</td> |
| 862 | <td><a href="http://wg21.link/n4592">N4592</a></td> |
| 863 | <td><tt>-fmodules-ts</tt></td> |
| 864 | <td class="none" align="center">WIP</td> |
Richard Smith | f006a96 | 2016-03-04 21:01:14 | [diff] [blame] | 865 | </tr> |
| 866 | <tr> |
Richard Smith | 894835f | 2015-11-05 21:41:06 | [diff] [blame] | 867 | <td>[TS] Transactional Memory</td> |
Richard Smith | 85864d5 | 2015-11-26 02:23:21 | [diff] [blame] | 868 | <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4514.pdf">N4514</a></td> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 869 | <td></td> |
Richard Smith | 3a0ed87 | 2014-02-15 00:29:00 | [diff] [blame] | 870 | <td class="none" align="center">No</td> |
| 871 | </tr> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 872 | </table> |
Richard Smith | e2bf878 | 2016-09-28 21:01:37 | [diff] [blame] | 873 | </details> |
Richard Smith | 91e474f | 2013-11-27 22:58:16 | [diff] [blame] | 874 | |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 | [diff] [blame] | 875 | </div> |
| 876 | </body> |
| 877 | </html> |