This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Fix handling of using declarations in for loop init statements.
ClosedPublic

Authored by cor3ntin on Jul 5 2023, 3:56 AM.

Details

Summary

The type was never saved, and therefore never transformed
in dependent contexts.

Diff Detail

Event Timeline

cor3ntin created this revision.Jul 5 2023, 3:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 3:56 AM
cor3ntin requested review of this revision.Jul 5 2023, 3:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 3:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cor3ntin added reviewers: aaron.ballman, Restricted Project.Jul 5 2023, 3:58 AM
aaron.ballman accepted this revision.Jul 5 2023, 7:03 AM

LGTM!

clang/test/SemaCXX/cxx23-init-statement.cpp
2

This should suffice, yes?

This revision is now accepted and ready to land.Jul 5 2023, 7:03 AM
cor3ntin added inline comments.Jul 5 2023, 7:11 AM
clang/test/SemaCXX/cxx23-init-statement.cpp
2

Yep!

This revision was landed with ongoing or failed builds.Jul 5 2023, 7:21 AM
This revision was automatically updated to reflect the committed changes.