This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18651] Error compiling nurbs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2004 17:48:51 -0000
- Subject: [Bug c++/18651] Error compiling nurbs
- References: <20041124171126.18651.e7677215@est.fib.upc.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-25 17:48 -------
BasicList(BasicList<T>& a) ;
BasicList<type> a();
BasicList<type> list;
list = a();
Not a bug since the copy construtor for BasicList does not accept rvalues (a() returns an rvalue).
Either change
BasicList(BasicList<T>& a) ;
to
BasicList(const BasicList<T>& a) ;
or change it so that a() returns a reference.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18651