[Sema] Merge variable template specializations
authorIlya Biryukov <ibiryukov@google.com>
Tue, 9 Aug 2022 09:50:18 +0000 (11:50 +0200)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 9 Aug 2022 10:17:41 +0000 (12:17 +0200)
commit07529996d92b9fc0cc760f4e98d88b607f66e747
treed20af2fe513ecd603b2e27ce3d9a45584eae5472
parent6db15a82cc0966458c2b7d84b39f42ef09d2ac20
[Sema] Merge variable template specializations

Clang used to produce redefinition errors, see tests for examples.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D131258
clang/lib/Sema/SemaDecl.cpp
clang/test/Modules/merge-var-template-spec-cxx-modules.cppm [new file with mode: 0644]
clang/test/Modules/merge-var-template-spec.cpp [new file with mode: 0644]