Hi,

Clang 2.9 contains complete and tested support for C++0x's
trailing-return-type feature, but the website claims otherwise. This plus
a couple of related things are fixed in this patch. I've not marked
trailing-return-type codegen as tested since I've not spotted any tests
that we do name mangling right.

OK to commit?

Richard
Index: test/Lexer/has_feature_cxx0x.cpp
===================================================================
--- test/Lexer/has_feature_cxx0x.cpp	(revision 128220)
+++ test/Lexer/has_feature_cxx0x.cpp	(working copy)
@@ -41,6 +41,16 @@
 // CHECK-NO-0X: no_auto_type
 
 
+#if __has_feature(cxx_trailing_return)
+int has_trailing_return();
+#else
+int no_trailing_return();
+#endif
+
+// CHECK-0X: has_trailing_return
+// CHECK-NO-0X: no_trailing_return
+
+
 #if __has_feature(cxx_attributes)
 int has_attributes();
 #else
Index: www/cxx_status.html
===================================================================
--- www/cxx_status.html	(revision 128220)
+++ www/cxx_status.html	(working copy)
@@ -216,10 +216,10 @@
 </tr>
 <tr>
   <td>auto type deduction</td>
-  <td class="complete" align="center"></td>
-  <td class="complete" align="center"></td>
-  <td class="complete" align="center"></td>
-  <td class="complete" align="center"></td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
   <td>7.1.6.2, 7.1.6.4</td>
   <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf";>N1984</a></td>
 </tr>
@@ -580,10 +580,10 @@
 <tr><td colspan="7" class="category">Things Completely New</td></tr>
 <tr>
   <td>Late-specified return type</td>
-  <td></td>
-  <td></td>
-  <td></td>
-  <td></td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete"></td>
   <td>8.3.5</td>
   <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2445.html";>N2445</a></td>
 </tr>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to