This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14823] the copy constructor is called unnecessarily/incorrectly when passing an arg by reference to the base class


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]