Unverified Commit 156ab4d4 authored by Qizhi Hu's avatar Qizhi Hu Committed by GitHub
Browse files

[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: default avatarhuqizhi <836744285@qq.com>
parent 823eb1a3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment