[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda
egor.pugin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 26 18:43:11 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398
--- Comment #1 from Egor Pugin <egor.pugin at gmail dot com> ---
auto f = [](auto &&m) {
enum { _,e3,e2,e1,C4,C3,C2,C1 };
static constexpr int x_coeffs[3][4] = {
{e1,C2,C3,C4},
{e2,C1,C3,C4},
{e3,C1,C2,C4},
};
};
int main() {
f(0);
}
<source>: In instantiation of '<lambda(auto:1&&)> [with auto:1 = int]':
<source>:11:6: required from here
<source>:4:10: internal compiler error: in tsubst_copy, at cp/pt.cc:16910
4 | {e1,C2,C3,C4},
| ^~
More information about the Gcc-bugs
mailing list