diff options
author | Qizhi Hu <836744285@qq.com> | 2024-04-30 16:09:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 16:09:09 +0800 |
commit | eaee8aa0afe111f9291d54ecef97a3640a0f6ce0 (patch) | |
tree | 490942b46f58f197c7ef8e4a6a47f3b8bbfce790 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 29dda26c65fc50066792f558e95f9603a7d7effc (diff) | |
download | llvm-eaee8aa0afe111f9291d54ecef97a3640a0f6ce0.zip llvm-eaee8aa0afe111f9291d54ecef97a3640a0f6ce0.tar.gz llvm-eaee8aa0afe111f9291d54ecef97a3640a0f6ce0.tar.bz2 |
[Clang][Sema] fix a bug on template partial specialization (#89862)
attempt to fix
https://github.com/llvm/llvm-project/issues/68885#issuecomment-1764201896
Deduction of NTTP whose type is `decltype(auto)` would create an
implicit cast expression to dependent type and makes the type of primary
template definition (`InjectedClassNameSpecialization`) and its partial
specialization different. Prevent emitting cast expression to make clang
knows their types are identical by removing `CTAK == CTAK_Deduced` when
the type is `decltype(auto)`.
Co-authored-by: huqizhi <836744285@qq.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions