]> granicus.if.org Git - clang/commit
[ASTImporter] Do not import FunctionTemplateDecl in record twice.
authorBalazs Keri <1.int32@gmail.com>
Wed, 7 Aug 2019 12:40:17 +0000 (12:40 +0000)
committerBalazs Keri <1.int32@gmail.com>
Wed, 7 Aug 2019 12:40:17 +0000 (12:40 +0000)
commit4dedb042153e0f654914ff1d9bf618ed016bf7b8
tree93fc05f95a0cf2fd8eefef5a4a4782197f58d12e
parent838c29d0589c827bb857e38ca52616d18e17f86d
[ASTImporter] Do not import FunctionTemplateDecl in record twice.

Summary:
For functions there is a check to not duplicate the declaration if it is in a
record (class). For function templates there was no similar check, if a
template (in the same class) was imported multiple times the
FunctionTemplateDecl was created multiple times with the same templated
FunctionDecl. This can result in problems with the declaration chain.

Reviewers: martong, a.sidorin, shafik, a_sidorin

Reviewed By: a_sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65203

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp