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},
      |          ^~

Reply via email to