[Bug c++/18113] compiler allows 2 copy constructors

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 22 18:54:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-10-22 18:53 -------
Your second copy constructor will be called every time the argument 
given can't be bound to a reference. The code is perfectly legal, and 
the compiler needs to accept it. 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18113



More information about the Gcc-bugs mailing list