This is an archive of the discontinued LLVM Phabricator instance.

[clang][ASTImporter] Fix import of function with auto return type.
ClosedPublic

Authored by balazske on Jun 9 2022, 4:49 AM.

Details

Summary

Fix a case of importing a function with auto return type
that is resolved with a type template argument that is declared
inside the function.
Fixes #55500

Diff Detail

Event Timeline

balazske created this revision.Jun 9 2022, 4:49 AM
Herald added a reviewer: shafik. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
balazske requested review of this revision.Jun 9 2022, 4:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 4:50 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
martong accepted this revision.Jun 9 2022, 5:47 AM

Thanks, nice work!

This is a fix for issue #55500 .

I think github will NOT automatically close the issue, unless you have a more specific format in the commit message. E.g. "Fixes #555000". See the docs here: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

clang/lib/AST/ASTImporter.cpp
3250

It's a good idea to extend this function!

This revision is now accepted and ready to land.Jun 9 2022, 5:47 AM
balazske edited the summary of this revision. (Show Details)Jun 10 2022, 12:27 AM