зеркало из https://github.com/microsoft/clang-1.git
Update C++ status and add a few more tests of overloading for member function calls
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
0fdea46561
Коммит
3f20a682ba
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче