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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase without templates:
inline int f(void)
{
  static int t = 1;
  return t;
}

int g(void)
{
  return f();
}

Reply via email to