-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second party
Description
Bugzilla Link | 48056 |
Version | trunk |
OS | All |
CC | @zygoloid |
Extended Description
Forgive me, this one's a bit hard to describe and/or search for, so it's possibly a duplicate.
#include <array>
#include <utility>
struct Foo {
int n;
};
constexpr bool foo() {
constexpr std::array<Foo, 2> foos = { 1, 2 };
[&]<std::size_t... is>(std::index_sequence<is...>) {
([&](std::array<int, foos[is].n>) {}, ...);
}(std::make_index_sequence<size(foos)>());
return true;
}
static_assert(foo());
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second party
Type
Projects
Status
Done