This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
3.4 parser bug, error: non-lvalue in unary `&'?
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 30 Jan 2003 12:59:34 -0500
- Subject: 3.4 parser bug, error: non-lvalue in unary `&'?
Hi,
I did a cvs update and rebuild from mainline today:
gcc version 3.4 20030130 (experimental)
I have the following preprocessed source obtained from a GNU/Linux
system:
http://home.attbi.com/~rodrigc/gcc/Process_Manager.ii.bz2
Compiling with:
g++ -c Process_Manager.ii
I get:
Process_Manager.cpp: In member function `int ACE_Process_Manager::wait(const
ACE_Time_Value&)':
Process_Manager.cpp:689: error: non-lvalue in unary `&'
Process_Manager.cpp:689: error: non-lvalue in unary `&'
Process_Manager.cpp:689: error: non-lvalue in unary `&'
Process_Manager.cpp:689: error: non-lvalue in unary `&'
Process_Manager.cpp:689: error: non-lvalue in unary `&'
Is this a 3.4 parser bug or do I have bad code?
The code in question is:
687 remaining = until < ACE_Time_Value::max_time
688 ? until - ACE_OS::gettimeofday ()
689 : ACE_Time_Value::max_time;
The problem does not occur on 3.3 branch.
Thanks.
--
Craig Rodrigues
http://home.attbi.com/~rodrigc
rodrigc@attbi.com