[Bug c++/70528] [5/6 Regression] bogus error: constructor required before non-static data member

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 4 14:34:00 GMT 2016


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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

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

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
If comment #1 should be accepted, then should this be accepted too?

template <class T, class U = decltype(T())>
struct I {
};

struct J {
  struct K {
    int First = J::N;
  };
  I<K> FunctionMDInfo;
  static const int N = 0;
};


More information about the Gcc-bugs mailing list