]> granicus.if.org Git - clang/commit
[ASTImporter] Extend lookup logic in class templates
authorAleksei Sidorin <a.sidorin@samsung.com>
Tue, 15 May 2018 11:09:07 +0000 (11:09 +0000)
committerAleksei Sidorin <a.sidorin@samsung.com>
Tue, 15 May 2018 11:09:07 +0000 (11:09 +0000)
commitde8567cd2889a2bb07e298a47b15302f08f42162
treec9e7d3bb3861010f01a86e1925761947736a6889
parent76da53dd960771ec458ad2add8a39a7876d3bd62
[ASTImporter] Extend lookup logic in class templates

During import of a class template, lookup may find a forward
declaration and structural match falsely reports equivalency
between a forward decl and a definition. The result is that
some definitions are not imported if we had imported a forward
decl previously. This patch gives a fix.

Patch by Gabor Marton!

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

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