[Bug c++/67557] New: Calling copy constructor of base class in constructor of derived class produces crashing code

2015-09-12 Thread Georg.Baum at post dot rwth-aachen.de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Georg.Baum at post dot rwth-aachen.de Target Milestone: --- Created attachment 36327 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36327&acti

[Bug c++/67557] Calling copy constructor of base class in constructor of derived class produces crashing code

2015-09-12 Thread Georg.Baum at post dot rwth-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557 --- Comment #3 from Georg Baum --- Can you please explain why ยง12.6.2 - 14 is applicable? I do not see any member function (virtual or not) being called on the partially constructed object. I still think that this is valid code with well defined

[Bug c++/67557] Calling copy constructor of base class in constructor of derived class produces crashing code

2015-09-13 Thread Georg.Baum at post dot rwth-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557 --- Comment #6 from Georg Baum --- (In reply to Markus Trippelsdorf from comment #4) > Well, the automatically generated copy constructor is a (special) member > function. OK, I see what you mean, but I still do not understand. The automatically