[all-commits] [llvm/llvm-project] cf9b4d: [Clang] Diagnose invalid function types in depende...
cor3ntin via All-commits
all-commits at lists.llvm.org
Tue May 6 13:51:26 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cf9b4d1e7961214deabd99a9fc3b1d4c9e78a71f
https://github.com/llvm/llvm-project/commit/cf9b4d1e7961214deabd99a9fc3b1d4c9e78a71f
Author: cor3ntin <corentinjabot at gmail.com>
Date: 2025-05-06 (Tue, 06 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaExpr.cpp
M clang/test/SemaTemplate/fun-template-def.cpp
Log Message:
-----------
[Clang] Diagnose invalid function types in dependent contexts (#138731)
When forming an invalid function type, we were not diagnosing it if the
call was dependent.
However, we later rely on the function type to be sensible during
argument deduction.
We now diagnose anything that is not a potential function type, to avoid
constructing bogus call expressions.
Fixes #138657
Fixes #115725
Fixes #68852
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list