[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class
robert dot schweikert at abaqus dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 5 13:45:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list