From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21315 invoked by alias); 27 Aug 2003 14:32:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21285 invoked by uid 48); 27 Aug 2003 14:32:31 -0000 Date: Wed, 27 Aug 2003 14:32:00 -0000 Message-ID: <20030827143231.21283.qmail@sources.redhat.com> From: "lerdsuwa at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030805101134.11804.nicolas.burrus@lrde.epita.fr> References: <20030805101134.11804.nicolas.burrus@lrde.epita.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11804] Wrong warning about explicit initialization of base class default constructor X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg03060.txt.bz2 List-Id: 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();