From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14889 invoked by alias); 28 Apr 2004 11:22:23 -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 14877 invoked by uid 48); 28 Apr 2004 11:22:22 -0000 Date: Wed, 28 Apr 2004 11:30:00 -0000 Message-ID: <20040428112222.14876.qmail@sources.redhat.com> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040213140825.14140.christian.engstrom@glindra.org> References: <20040213140825.14140.christian.engstrom@glindra.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14140] Unwanted call to derived constructor after implicit conversion X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg02735.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-04-28 11:22 ------- No, this *is* a bug. I already analyzed this, Andrew. Try adding this: derived& convert() const { return **this;} to derived_handle, and using it instead of relying on the implicit conversion. You will see that the call to derived construction is gone. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14140