[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

leanid.chaika at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 23 12:03:00 GMT 2018


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

--- Comment #1 from leanid <leanid.chaika at gmail dot com> ---
minim code:
---------------
struct A
{
      struct B
      {
            double m = 0.;
      };

   void f(double d, const B &b = B{}) {}
};

int main()
{
}
---------------


More information about the Gcc-bugs mailing list