This is the mail archive of the gcc@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]

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


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