[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 --- Comment #7 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:409edcca331296b53842c50d3b789e1b1ccc05e5 commit r12-8290-g409edcca331296b53842c50d3b789e1b1ccc05e5 Author: Marek Polacek Date: Tu

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 Patrick Palka changed: What|Removed |Added Assignee|ppalka at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 --- Comment #4 from Marek Polacek --- The patch above changed - if (TREE_CODE (template_type) == ENUMERAL_TYPE && !is_dependent_type + if (TREE_CODE (template_type) == ENUMERAL_TYPE + && !uses_template_parms (current_nonlambda

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org S

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 Marek Polacek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 --- Comment #1 from Egor Pugin --- 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); }