This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6271: GCC 2.95 fail
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mantonenco at yahoo dot com, nobody at gcc dot gnu dot org
- Date: 13 Apr 2002 01:34:52 -0000
- Subject: Re: c++/6271: GCC 2.95 fail
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mantonenco at yahoo dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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