[Clang] Fix PR28101
authorPoYao Chang <poyaoc97@gmail.com>
Wed, 23 Mar 2022 01:12:05 +0000 (09:12 +0800)
committerPoYao Chang <poyaoc97@gmail.com>
Wed, 23 Mar 2022 16:38:45 +0000 (00:38 +0800)
commit355f1c75aa66fc3d9bef897375f5e0979a55001d
treeffebe76e2e001449657ad70e1baf43e5a85122a4
parent5ef2ec7e4e129cb9a1d9e688fbf8590a85f01530
[Clang] Fix PR28101

Fixes https://github.com/llvm/llvm-project/issues/28475 (PR28101)
by setting identifier for invalid member variables with template parameters,
so that the invalid declarators would not crash clang.

See also: https://github.com/llvm/llvm-project/commit/942c03910a

Differential Revision: https://reviews.llvm.org/D115248
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/PR28101.cpp [new file with mode: 0644]