In Sema::LookupTemplateName(...) seeks to assert that the ObjectType is complete or being defined. If the type is incomplete it will attempt to unconditionally cast it to a TagType and not all incomplete types are a TagType. For example the type could be void or it could be an IncompleteArray. This change adds an additional check to confirm it is a TagType before attempting to check if it is incomplete or being defined Differential Revision: https://reviews.llvm.org/D132712
7.3 KiB
7.3 KiB