[cfe-commits] r171193 - in /cfe/trunk: include/clang/AST/Decl.h lib/AST/Decl.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaOverload.cpp test/SemaCXX/linkage2.cpp

Eli Friedman eli.friedman at gmail.com
Fri Jan 11 16:25:07 PST 2013


On Fri, Dec 28, 2012 at 6:21 AM, Rafael Espindola
<rafael.espindola at gmail.com> 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



More information about the cfe-commits mailing list