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]

Re: libjava doesn't build with new cp/*


On Sep  4, 2003, Nathan Sidwell <nathan@codesourcery.com> wrote:

> 	*(::java::lang::Object**) &peer = (::java::lang::Object*) w;

If the point is to make the left-hand operand an lvalue, just cast to
a reference type:

        (::java::lang::Object*&) peer = (::java::lang::Ojbect*) w;

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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