Kristian Adrup <[EMAIL PROTECTED]> writes:
> struct X {
> Int16   a[27];
> Char   *b;
> };
> 
> Then I try to declare an instance of it with an initializer...
> 
> struct X thestruct = {{1},""};
> 
> This results in thestruct getting filled with garbage. I've tried with
> different members in X, the pattern seems to be that sizeof(struct X)
> can't be >=58.

I couldn't reproduce this when you posted on p.p.gcc, and I still can't
reproduce it.  The code above generates perfectly reasonable assembly,
and doesn't vary unexpectedly with sizeof (struct X).

A reproducible test case or a more precise description of your garbage
might help us guess what's going on here.

    John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to