This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

alignment test case


Andrew Haley writes:
 > Andrew Haley writes:
 >  > Tom Tromey writes:
 >  >  > Here's a simple test case that shows the alignment bug.
 >  >  > 
 >  >  > When I run it, I get:
 >  >  > 
 >  >  > fleche. ./F
 >  >  > 4294967296
 >  >  > true
 >  >  > null
 >  >  > 232300
 >  >  > true
 >  >  > maude
 >  >  > 
 >  >  > This is with a pristine 3.3 build I did yesterday.
 >  > 
 >  > Great, thanks.  I'm on it.
 > 
 > Oops.  I found the bug, and it's pretty trivial.  If a superclass has
 > smaller alignment than a subclass -- which can happen because Object
 > is only 4-aligned -- my patch is wrong.

I was too quick to accept blame.  My patch is correct AFAICS.

I think this is a c++ bug.  See http://gcc.gnu.org/ml/gcc/2003-03/msg01196.html.
Andrew.


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