https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119584
Bug ID: 119584 Summary: [14/15 Regression] flatten attribute calling a function with concept requires an ICE during inlining at -O2 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Blocks: 119482 Target Milestone: --- Created attachment 60956 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60956&action=edit testcase; -std=c++20 -O2 This is reduded from PR 119482. Note this is different from PR 103819 because it started in GCC 14. plus it seems concepts related because removing the requires part of the template resolves the issue. In this case the concept is always true so it should not matter. during IPA pass: inline <source>:19:44: internal compiler error: in redirect_callee, at cgraph.cc:1392 19 | __attribute__((flatten)) void f() { d(&e); } | Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119482 [Bug 119482] slow compilation on ladybird interpreter