This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
- From: "robert dot schweikert at abaqus dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2004 13:45:40 -0000
- Subject: [Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
- References: <20040402143013.14823.robert.schweikert@abaqus.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From robert dot schweikert at abaqus dot com 2004-04-05 13:45 -------
Subject: Re: the copy constructor is called
unnecessarily/incorrectly when passing an arg by reference to the base class
Oops, I of course picked up the wrong compiler (gcc-3.3.) and the both
examples I sent previously reproduce the symptom if I use gcc-3.4.
Thanks,
Robert
On Fri, 2004-04-02 at 12:41, bangerth at dealii dot org wrote:
> ------- Additional Comments From bangerth at dealii dot org 2004-04-02 17:41 -------
> Robert, can you try to come up with a small example that shows your point?
> I understand that the testcase you posted does not demonstrate it (right?)
> but the big one attached to this PR is so complicated that I stopped
> looking at it after a few minutes...
>
> W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14823