[all-commits] [llvm/llvm-project] f725bb: [clang] Fix CTAD not work for function-type and ar...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Jan 16 00:54:48 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f725bb960d45ada3cc4667dd7aa22792d389c7e7
https://github.com/llvm/llvm-project/commit/f725bb960d45ada3cc4667dd7aa22792d389c7e7
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/SemaCXX/cxx1z-class-template-argument-deduction.cpp
Log Message:
-----------
[clang] Fix CTAD not work for function-type and array-type arguments. (#78159)
Fixes https://github.com/llvm/llvm-project/issues/51710.
When transforming a constructor into a corresponding deduction guide,
the decayed types (function/array type) were not handled properly which
made clang fail to compile valid code. The patch teaches clang handle
these decayed type in the transformation.
More information about the All-commits
mailing list