libjava doesn't build with new cp/*

Alexandre Oliva aoliva@redhat.com
Fri Sep 5 05:52:00 GMT 2003


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



More information about the Gcc mailing list