]> granicus.if.org Git - clang/commit
Reject incompatible redeclarations of extern C symbols.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Jan 2013 19:34:23 +0000 (19:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Jan 2013 19:34:23 +0000 (19:34 +0000)
commit294ddc63398f2c9435fcfbdb4da4ac3a23c1cbba
treef37144238f30c6ee03a65b6102ecd492ee9ce008
parent4d8efb48b9de9feee79c948ef9d05febd6d0c20b
Reject incompatible redeclarations of extern C symbols.

Before we were only checking if the new declaration itself was marked extern
C. Fixes prpr14766.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172243 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/function-redecl.c
test/SemaCXX/function-redecl.cpp