[cfe-commits] r62121 - in /cfe/trunk: test/SemaCXX/overload-member-call.cpp www/cxx_status.html
Douglas Gregor
dgregor at apple.com
Mon Jan 12 15:20:39 PST 2009
Author: dgregor
Date: Mon Jan 12 17:20:38 2009
New Revision: 62121
URL: http://llvm.org/viewvc/llvm-project?rev=62121&view=rev
Log:
Update C++ status and add a few more tests of overloading for member function calls
Modified:
cfe/trunk/test/SemaCXX/overload-member-call.cpp
cfe/trunk/www/cxx_status.html
Modified: cfe/trunk/test/SemaCXX/overload-member-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/overload-member-call.cpp?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/overload-member-call.cpp (original)
+++ cfe/trunk/test/SemaCXX/overload-member-call.cpp Mon Jan 12 17:20:38 2009
@@ -17,6 +17,23 @@
static double& g(double); // expected-note{{candidate function}}
void h(int);
+
+ void test_member() {
+ float& f1 = f(0);
+ float& f2 = g(0);
+ double& d1 = g(0.0);
+ }
+
+ void test_member_const() const {
+ int &i1 = f(0);
+ int &i2 = g(0);
+ double& d1 = g(0.0);
+ }
+
+ static void test_member_static() {
+ double& d1 = g(0.0);
+ g(0); // expected-error{{call to 'g' is ambiguous; candidates are:}}
+ }
};
void test(X x, const X xc, X* xp, const X* xcp, volatile X xv, volatile X* xvp) {
Modified: cfe/trunk/www/cxx_status.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=62121&r1=62120&r2=62121&view=diff
==============================================================================
--- cfe/trunk/www/cxx_status.html (original)
+++ cfe/trunk/www/cxx_status.html Mon Jan 12 17:20:38 2009
@@ -411,9 +411,9 @@
<td> 4.3 [conv.func]</td>
<td class="complete" align="center">✓</td>
<td class="complete" align="center">✓</td>
- <td class="medium" align="center"></td>
+ <td class="advanced" align="center"></td>
+ <td></td>
<td></td>
- <td>Missing conversions from overloaded functions to function pointers.</td>
</tr>
<tr>
<td> 4.4 [conv.qual]</td>
@@ -503,7 +503,7 @@
<td></td>
<td>template-ids are not supported, name lookup is not complete</td>
</tr>
-<tr><td> 5.2 [expr.post]</td><td></td><td></td><td></td><td></td><td>Note that overloading is not considered in this section</td></tr>
+<tr><td> 5.2 [expr.post]</td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td> 5.2.1 [expr.sub]</td>
<td class="complete" align="center">✓</td>
@@ -518,7 +518,7 @@
<td class="complete" align="center">✓</td>
<td class="medium" align="center"></td>
<td></td>
- <td>Member calls don't work</td>
+ <td>Argument-dependent lookup is unsupported</td>
</tr>
<tr>
<td> 5.2.3 [expr.type.conv]</td>
@@ -539,10 +539,10 @@
<tr>
<td> 5.2.5 [expr.ref]</td>
<td class="complete" align="center">✓</td>
- <td class="basic"></td>
- <td class="basic"></td>
+ <td class="medium"></td>
+ <td class="medium"></td>
<td></td>
- <td>Only fields can be accessed</td>
+ <td>Cannot look up operator names, qualified-ids, or names in base classes</td>
</tr>
<tr>
<td> 5.2.6 [expr.post.incr]</td>
More information about the cfe-commits
mailing list