On Fri, Dec 28, 2012 at 6:21 AM, Rafael Espindola
<[email protected]> wrote:
> Author: rafael
> Date: Fri Dec 28 08:21:58 2012
> New Revision: 171193
>
> URL: http://llvm.org/viewvc/llvm-project?rev=171193&view=rev
> Log:
> Reject overloading of two static extern C functions.
>
> This patch moves hasCLanguageLinkage to be VarDecl and FunctionDecl methods
> so that they can be used from SemaOverload.cpp and then fixes the logic
> in Sema::IsOverload.

I think this patch caused a regression for the following testcase
(which we should reject):

int main() {}
int main(int,char**) {}

-Eli
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to