------- 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 fails if declared as t1(t1& tr); I don't see how the reply deals with this issue.
-- richard at rggibbs dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25231