[Sema] Ensure an auto non-type template parameter is dependent
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 7 Aug 2018 22:59:02 +0000 (22:59 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 7 Aug 2018 22:59:02 +0000 (22:59 +0000)
commit9f9462acf6d95c204849492e5a997f26465ecd0f
treeeafce8bbf09f62e3da23379b444d103f84956cba
parent2e60ad2e581d824364fa0cbacfcc0d1aa66ce573
[Sema] Ensure an auto non-type template parameter is dependent

The dependent auto was getting stripped away while rebuilding the template
parameter type, so substitute it in.

rdar://41852459

Differential revision: https://reviews.llvm.org/D50088

llvm-svn: 339198
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp