https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120871

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A simple tail recusion case:
```
struct Slice {
    const char* data;
    unsigned long size;
    ~Slice();
};
Slice get_s_impl();
Slice get_s(bool t)
{
  if (!t)
    return get_s(!t);
  return {};
}
```

Which is also missed with `-O2 -fno-inline` (note -fno-inline is needed as GCC
knows how to handle inlining here).

Reply via email to