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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced even more:

// PR c++/97899

template <typename T = int>
int fn()
{
  return 1;
}

template <typename T>
void bar() {
  const int i = int{fn()};
}

Reply via email to