This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PR java/25535: gcj broken on 64-bit big-endian systems
Tom Tromey writes:
> >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
>
> Andrew> It can't be done: AFAIK a constructor for a union can only initialize
> Andrew> the first element of the union.
>
> According to the documentation for CONSTRUCTOR in tree.def it can be
> done. Also, gcj already does this; see the initialization of the
> "info" field in class.c:make_field_value().
Duh. Serves me right for not RTFM.
OK, so a "real" patch goes into trunk, with the stopgap on branch. We
never want types to diverge between compiler and runtime.
Andrew.