> I get the following errors:
> uniontest2.c:26: error: struct/union/array '' :initialization needs
> curly braces
> uniontest2.c:38: error: cannot assign values to aggregates
> both gcc (3.2.2 - linux) and IAR for 8051 both compile the code with
> no errors.
> Does sdcc fully support union assignments?
Sorry, but sdcc does not. See the manual section 8.2. Anything it says
there about structs applies equally to unions.
> Thanks for your help.
> Geoff Hunter