[Sema] Don't diagnose an array type mismatch when the new or previous
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 1 Sep 2016 01:03:21 +0000 (01:03 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 1 Sep 2016 01:03:21 +0000 (01:03 +0000)
commit3e34cfe8b62d2bfae7a7ccb4d7ac7bec57b54ca5
treee9718eb193b2921db0934f93477eef8599c58705
parent10a7086700780a325a6eb1f7927e81a97a7a9c7d
[Sema] Don't diagnose an array type mismatch when the new or previous
declaration has a dependent type.

This fixes a bug where clang errors out on a valid code.

rdar://problem/28051467

Differential Revision: https://reviews.llvm.org/D24110

llvm-svn: 280330
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaTemplate/array-redeclaration.cpp [new file with mode: 0644]