[clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (#67522)
[clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record
static VarTemplateDecl in record isn't a definition, when imported
before, it will crash in `ASTContext::setTemplateOrSpecializationInfo`
due to setting specialization while it already exists. This patch skip
this specific case.
Co-authored-by:
huqizhi <836744285@qq.com>
parent
6afceba5
Please register or sign in to comment