[all-commits] [llvm/llvm-project] cde139: [clang][Sema] Fix a crash when instantiating a non...
Sheng via All-commits
all-commits at lists.llvm.org
Wed May 24 06:47:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cde139016a4eb2d71950e135f9c037987ecdb7cf
https://github.com/llvm/llvm-project/commit/cde139016a4eb2d71950e135f9c037987ecdb7cf
Author: Sheng <ox59616e at gmail.com>
Date: 2023-05-24 (Wed, 24 May 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaTemplate.cpp
A clang/test/SemaCXX/PR62533.cpp
M clang/test/SemaTemplate/ms-sizeof-missing-typename.cpp
Log Message:
-----------
[clang][Sema] Fix a crash when instantiating a non-type template argument in a dependent scope.
The type alias template is not diagnosed when instantiating an expected non-type template argument in a dependent scope, causing ICE.
Besides that, the diagnostic message has been updated to account for the fact that the function template is not the only non-type template.
Fixes #62533
Reviewed By: #clang-language-wg, erichkeane
Differential Revision: https://reviews.llvm.org/D151062
More information about the All-commits
mailing list