This is an archive of the discontinued LLVM Phabricator instance.

[clang][C++2b] Fix operator[] with parameter pack expansions
AbandonedPublic

Authored by Tyker on May 5 2023, 4:15 PM.

Details

Summary

operator[] currently crashes when used with parameter packs (https://godbolt.org/z/1z9qGbPcr, https://godbolt.org/z/7cGeabzYW)

This patch fixes these issues.

Diff Detail

Event Timeline

Tyker created this revision.May 5 2023, 4:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 4:15 PM
Tyker requested review of this revision.May 5 2023, 4:15 PM
Tyker retitled this revision from [clang][C++2b] Fix variadic operator[] with parameter pack expansions to [clang][C++2b] Fix operator[] with parameter pack expansions.

This looks very similar to https://reviews.llvm.org/D149637 which landed a couple of days ago. Did you confirm there is still an issue on tip of main?

Tyker abandoned this revision.May 8 2023, 8:58 AM

This looks very similar to https://reviews.llvm.org/D149637 which landed a couple of days ago. Did you confirm there is still an issue on tip of main?

I checked with the original crash I had and it is working with D149637.