[Clang][Sema] set declaration invalid earlier to prevent crash in calculating...
[Clang][Sema] set declaration invalid earlier to prevent crash in calculating record layout (#87173) Try to fix https://github.com/llvm/llvm-project/issues/75221 This crash caused by calculating record layout which contains a field declaration with dependent type. Make it invalid before it is a complete definition to prevent this crash. Define a new scope type to record this type alias and set the record declaration invalid when it is defined in a type alias template. Co-authored-by:huqizhi <836744285@qq.com>
parent
823eb1a3
Please register or sign in to comment