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

Nikita Kniazev <nok.raven at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[7/8/9 Regression] False    |[7/8/9 Regression]
                   |positive -Wuninitialized in |-Wuninitialized false
                   |C++14+ mode                 |positive with unclear
                   |                            |message pointing to a class
                   |                            |name

--- Comment #7 from Nikita Kniazev <nok.raven at gmail dot com> ---
I have creduced the repro. https://wandbox.org/permlink/i4BOmwbcWuaSlO1z

template <typename T> struct Y {
  T m;
  Y(T t) : m(t) {}
};
class F {
public:
  ~F();
  template <class T> F(T&) {}
};
class X {
public:
  X(const char* p) : f(p) {}
  const char* end_;
  mutable F f;
};
void foo() {
  Y<X>(X(0));
}

Hope it helps fixing bug/diagnostic.

Reply via email to