c++/6271: GCC 2.95 fail
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Fri Apr 12 18:35:00 GMT 2002
Synopsis: GCC 2.95 fail
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Apr 12 18:34:51 2002
State-Changed-Why:
Your code is buggy, not gcc.
Compiling with the Digital Unix C++ compiler shows:
cxx: Warning: a.cpp, line 23: initial value of reference to non-const
must be
an lvalue
a = f();
------------^
For general C++ help, refer to the comp.lang.c++ or
comp.lang.c++.moderated newsgroups.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6271
More information about the Gcc-bugs
mailing list