[all-commits] [llvm/llvm-project] ce6af7: Create a Template member to be the MemberSpec of a...
Erich Keane via All-commits
all-commits at lists.llvm.org
Wed Jul 15 11:05:59 PDT 2026
Branch: refs/heads/release/23.x
Home: https://github.com/llvm/llvm-project
Commit: ce6af707aac85db6e176ad0faa3bfe608e1a68f5
https://github.com/llvm/llvm-project/commit/ce6af707aac85db6e176ad0faa3bfe608e1a68f5
Author: Erich Keane <ekeane at nvidia.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/test/SemaTemplate/class-template-spec.cpp
Log Message:
-----------
Create a Template member to be the MemberSpec of a failed TemplVarDecl (#209604)
Patch #200092 changed to no longer check the previous var template when
setting whether the current one is a member specialization. However, if
the previous one was actually an error case (see the example here and in
the report), we ended up trying to do that anyway, which caused an
assertion.
This patch puts in a 'fake' declaration for the not-found declaration after we
emit the 'not found' error for the purposes of allowing our diagnostics to
continue evaluating these without causing problems.
Fixes: #209432
(cherry picked from commit 2c2e43675910603bab1b163655786e4850569d74)
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