ASTImporter used to crash in some cases when a function is imported with
auto return type and the return type has references into the function.
The handling of such cases is improved and crash should not occur any more
but it is not fully verified, there are very many different types of
cases to care for.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It is still not perfect, analysis of qtbase is not better than before and some of the unreachable assertions were encountered.
Comment Actions
Yes, I plan to add improvements but the current code remains mostly. I found other type of error (in project qtbase) that are not directly related, too (infinite import loop of deduction guide without auto return value, one of the function arguments is involved), these will remain for future work.
Comment Actions
Thank you, nice and assiduous work!
The changes look good to me, but I think we should have some more tests where variable and function template specializations are used as return types.
Comment Actions
Removed one unreachable, added new tests, improvement of TagDecl check, re-arranged source code.