This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11804] Wrong warning about explicit initialization of base class default constructor
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2003 14:32:31 -0000
- Subject: [Bug c++/11804] Wrong warning about explicit initialization of base class default constructor
- References: <20030805101134.11804.nicolas.burrus@lrde.epita.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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();