Revert "Don't build invalid AST nodes during recovery"
authorReid Kleckner <reid@kleckner.net>
Thu, 18 Dec 2014 18:17:42 +0000 (18:17 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 18 Dec 2014 18:17:42 +0000 (18:17 +0000)
commit034531d7af99680c30b81bb50e5c04c0ccc5f8df
tree515f05035b20dd21800e0659ae09cf3bfdec92cf
parent661a97bedea667db01ea2c5e7b93b83f1e12d0c4
Revert "Don't build invalid AST nodes during recovery"

This reverts commit r224451. It caused us to reject some valid existing
code.

This code appears to run in non-error cases as well as error cases. If
the scope of a DependentScopeDeclRefExpr is still incomplete it probably
means we still have more instantiation to do.

llvm-svn: 224526
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp