[Bug c++/25231] Compiler error for copy constructor with non const input

2005-12-02 Thread richard at rggibbs dot com
--- Comment #2 from richard at rggibbs dot com 2005-12-02 21:11 --- I really don't think that the reply addresses the question. If a function returns an object it has to call a copy constructor. This code compiles if the copy constructor is declared as t1(const t1& tr); but

[Bug c++/25231] New: Compiler error for copy constructor with non const input

2005-12-02 Thread richard at rggibbs dot com
ut Product: gcc Version: 3.3.6 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: richard at rggibbs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25231