<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Uhrain <rikka@google.com>"> <span class="fn">Kaelyn Uhrain</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Add name resolution fixup for calling overloaded function outside of method scope"
href="http://llvm.org/bugs/show_bug.cgi?id=12287">bug 12287</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>ASSIGNED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>rikka@google.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>dblaikie@gmail.com
</td>
<td>rikka@google.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Add name resolution fixup for calling overloaded function outside of method scope"
href="http://llvm.org/bugs/show_bug.cgi?id=12287#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Add name resolution fixup for calling overloaded function outside of method scope"
href="http://llvm.org/bugs/show_bug.cgi?id=12287">bug 12287</a>
from <span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Uhrain <rikka@google.com>"> <span class="fn">Kaelyn Uhrain</span></a>
</span></b>
<pre>As of r185881, clang will now provide a suggestion and an associated FixIt hint
(and not just for functions that can be found the global scope):
$ cat tmp.cc
class A {
void foo(int);
};
void foo();
void A::foo(int) {
foo();
}
$ ./bin/clang++ -fsyntax-only tmp.cc
tmp.cc:8:7: error: too few arguments to function call, expected 1, have 0; did
you mean '::foo'?
foo();
~~~ ^
::foo
tmp.cc:5:1: note: '::foo' declared here
void foo();
^
1 error generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>