[Bug c++/65300] If one more constructor is defined, default params on using not passed from parent class

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 3 16:41:00 GMT 2015


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Sigh, I still got it wrong, sorry!

The default ctor is suppressed, because you declared:

  C(int c1, int c2, int c3) : A(c1, c2) {}

The solution is still to declare it explicitly:

  C() = default;



More information about the Gcc-bugs mailing list