Fix regression in r332076.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 May 2018 20:52:48 +0000 (20:52 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 14 May 2018 20:52:48 +0000 (20:52 +0000)
commitcbebd6226dbdd796ed35b40bd35aeb60bf1ada09
treec3ea2c93a53e08f14609aa1864ab99a4919027d9
parentf66f7612bf6a0f6f6085056c2083870981d7c2a0
Fix regression in r332076.

If the name after 'template' is an unresolved using declaration (not containing
'typename'), then we don't yet know if it's a valid template-name, so don't
reject it prior to instantiation. Instead, treat it as naming a dependent
member of the current instantiation.

llvm-svn: 332291
clang/lib/Sema/SemaTemplate.cpp
clang/test/CXX/drs/dr1xx.cpp
clang/test/SemaTemplate/dependent-names.cpp