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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Cleaned up testcase:

template <typename T> constexpr T bar(T c) { return c; }

template <typename T, typename U> struct S {
  T f;
  U g;
  constexpr S(T c, U h) : f(c), g(h) {}
};

template <typename T, typename U>
constexpr S<T, U> foo(T &&c, U h) {
  return S<T, U>(c, bar (h));
}

enum { X };

class C {
  void m_fn1() const;
};

void
baz (int a)
{
  foo(a, "");
}

void C::m_fn1() const { foo(X, ""); }

Reply via email to