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

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

// PR c++/97899

template <typename T>
T fn(T a)
{
  return a;
}

template <typename>
struct C {
  void bar() {
    int d = 42;
    const int i = int{fn(d)};
  }
};

Reply via email to