https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114992
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE during IPA pass: |[13/14/15 Regression] ICE |targetclone in |during IPA pass: |add_to_same_comdat_group, |targetclone in |at symtab.cc:492 |add_to_same_comdat_group | |with calling a target clone | |with a lamdba in a comdat | |function Keywords| |ice-on-valid-code Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Target Milestone|--- |13.3 Last reconfirmed| |2024-05-08 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` template <typename Callable> void helper_func(Callable) {} template <typename Callable> __attribute__((target_clones("avx2", "default"))) void handler(Callable) {} struct cl { inline int func(); }; inline int cl::func() { helper_func([](int) {}); handler([this]() {}); } cl f; int g = f.func(); ```