[Sema] Actually map a variable template specialization from pattern to instantiation
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 30 Jul 2019 23:38:18 +0000 (23:38 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 30 Jul 2019 23:38:18 +0000 (23:38 +0000)
commit4cae092099df67b4b70838a5abad9ae83a6f955c
tree0f2be0b2408a615b6b9ad27a7869a67f76e545fe
parent95ab5e6eb703cab091ba7a9d5636b871b88ab111
[Sema] Actually map a variable template specialization from pattern to instantiation

We were previously just using a specialization in the class template instead of
creating a new specialization in the class instantiation.

Fixes llvm.org/PR42779.

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

llvm-svn: 367367
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExprMember.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaCXX/cxx1y-variable-templates_in_class.cpp