diff options
-rw-r--r-- | clang/test/SemaCXX/overload-member-call.cpp | 17 | ||||
-rw-r--r-- | clang/www/cxx_status.html | 14 |
2 files changed, 24 insertions, 7 deletions
diff --git a/clang/test/SemaCXX/overload-member-call.cpp b/clang/test/SemaCXX/overload-member-call.cpp index 9c0117f9b14..8b7b148b3f8 100644 --- a/clang/test/SemaCXX/overload-member-call.cpp +++ b/clang/test/SemaCXX/overload-member-call.cpp @@ -17,6 +17,23 @@ struct X { 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) { diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index 96cd287af87..4df163faebd 100644 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -411,9 +411,9 @@ welcome!</p> <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 @@ welcome!</p> <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 @@ welcome!</p> <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 @@ welcome!</p> <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>
|