From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55432 invoked by alias); 13 Sep 2015 06:59:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 55362 invoked by uid 48); 13 Sep 2015 06:59:07 -0000 From: "Georg.Baum at post dot rwth-aachen.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67557] Calling copy constructor of base class in constructor of derived class produces crashing code Date: Sun, 13 Sep 2015 06:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Georg.Baum at post dot rwth-aachen.de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01056.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67557 --- Comment #3 from Georg Baum --- Can you please explain why =C2=A712.6.2 - 14 is applicable? I do not see an= y member function (virtual or not) being called on the partially constructed object.= I still think that this is valid code with well defined behaviour. >>From gcc-bugs-return-497079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 13 08:08:41 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100153 invoked by alias); 13 Sep 2015 08:08:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98459 invoked by uid 48); 13 Sep 2015 08:08:36 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67557] Calling copy constructor of base class in constructor of derived class produces crashing code Date: Sun, 13 Sep 2015 08:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01057.txt.bz2 Content-length: 210 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557 --- Comment #4 from Markus Trippelsdorf --- Well, the automatically generated copy constructor is a (special) member function.