Don't replace an existing decl in the scope chains with its
authorJohn McCall <rjmccall@apple.com>
Sat, 13 Apr 2013 00:20:21 +0000 (00:20 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 13 Apr 2013 00:20:21 +0000 (00:20 +0000)
commita4da323ee0696732691380ad6010a53495f9512b
tree1c4ba2083983466fc58f8bdac40741014bd1bc20
parent50b8b5507b345bc95111ed7f1e11036e3a849ac1
Don't replace an existing decl in the scope chains with its
local-extern redeclaration;  type refinements, default arguments,
etc. must all be locally scoped.

rdar://13535367

llvm-svn: 179430
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/extern-redecl.c
clang/test/Sema/function-redecl.c
clang/test/Sema/var-redecl.c