[all-commits] [llvm/llvm-project] 92f4bf: Fix aggregate CTAD with string literals adding ext...

Mital Ashok via All-commits all-commits at lists.llvm.org
Wed Jul 5 11:56:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92f4bf268998201ec05dab9917c2873afc578a94
      https://github.com/llvm/llvm-project/commit/92f4bf268998201ec05dab9917c2873afc578a94
  Author: Mital Ashok <mital at mitalashok.co.uk>
  Date:   2023-07-05 (Wed, 05 Jul 2023)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/CXX/drs/dr26xx.cpp
    M clang/test/SemaTemplate/aggregate-deduction-candidate.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  Fix aggregate CTAD with string literals adding extra const

Missing a `withConst`, so when deducing from a string literal, a `const` is erroneously added to the deduced type.

Reviewed By: ychen

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




More information about the All-commits mailing list