This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18651] Error compiling nurbs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]