[all-commits] [llvm/llvm-project] 1c98f9: Stop ExtractTypeForDeductionGuide from recursing o...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Dec 7 11:30:32 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c98f984105e552daa83ed8e92c61fba0e401410
      https://github.com/llvm/llvm-project/commit/1c98f984105e552daa83ed8e92c61fba0e401410
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-12-07 (Mon, 07 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.




More information about the All-commits mailing list