I saw assert failing when compiling some code that includes Qt headers. I think the code I was compiling was actually missing some class definitions, so I was expecting to see an error - not a failing assert. Btw, in the debugger I see that ResultKind == NotFoundInCurrentInstantiation when assert statement is reached.
It roughly means that the caller thinks nothing was found when
something actually was found. It's hard to say more without more
information; can you provide a preprocessed file which reproduces the
issue, or at least a backtrace?
Erm, wait, actually, what's most likely happening is that
LookupQualifiedName is getting called multiple times and failing...
random guess: does -fno-spell-checking help?