[all-commits] [llvm/llvm-project] 71e6e8: [clang] Fix constrained decltype(auto) deduction

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Fri Mar 5 18:20:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71e6e82746caba1a40a0faeb43fe0c0a1fadb77e
      https://github.com/llvm/llvm-project/commit/71e6e82746caba1a40a0faeb43fe0c0a1fadb77e
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M clang/lib/Sema/SemaType.cpp
    M clang/test/CXX/dcl/dcl.fct/p17.cpp
    M clang/test/CXX/dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
    M clang/test/Parser/cxx2a-placeholder-type-constraint.cpp

  Log Message:
  -----------
  [clang] Fix constrained decltype(auto) deduction

Prior to this fix, constrained decltype(auto) behaves exactly the same
as constrained regular auto.
This fixes it so it deduces like decltype(auto).

Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>

Reviewed By: rsmith

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




More information about the All-commits mailing list