[all-commits] [llvm/llvm-project] 200eb1: Stop ExtractTypeForDeductionGuide from recursing o...
Erich Keane via All-commits
all-commits at lists.llvm.org
Mon Dec 14 16:36:43 PST 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: 200eb1abe2a1088a155f47b95dd1d35b3f37afa6
https://github.com/llvm/llvm-project/commit/200eb1abe2a1088a155f47b95dd1d35b3f37afa6
Author: Erich Keane <erich.keane at intel.com>
Date: 2020-12-14 (Mon, 14 Dec 2020)
Changed paths:
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/AST/deduction-guides.cpp
Log Message:
-----------
Stop ExtractTypeForDeductionGuide from recursing on TypeSourceInfo
As reported in PR48177, the type-deduction extraction ends up going into
an infinite loop when the type referred to has a recursive definition.
This stops recursing and just substitutes the type-source-info the
TypeLocBuilder identified when transforming the base.
(cherry picked from commit 1c98f984105e552daa83ed8e92c61fba0e401410)
More information about the All-commits
mailing list