[Bug c++/18651] Error compiling nurbs

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 25 17:48:00 GMT 2004


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



More information about the Gcc-bugs mailing list