[Bug c++/11804] Wrong warning about explicit initialization of base class default constructor
lerdsuwa at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 27 14:32:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11804
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-08-27 14:32 -------
Not a bug. You're confused between copy constructor
and default constructor. The one in your code is a
copy constructor
D::D(const D& d);
On the other hand, default constructor looks like
D::D();
More information about the Gcc-bugs
mailing list