https://bugs.llvm.org/show_bug.cgi?id=48056
Bug ID: 48056
Summary: ICE on use of constexpr in lambda parameter type
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: ldalessan...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
Forgive me, this one's a bit hard to describe and/or search for, so it's
possibly a duplicate.
https://godbolt.org/z/c1P9sr
```
#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());
```
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs