On Mon, Mar 23, 2015 at 02:07:28PM +0530, Umesh Kalappa wrote:
> Hi All ,
>
> GCC 4.8.3 ,pop up with below error
>
> /home/i16382/an.c:13:18: error: duplicate member 'bOriginator'
> unsigned bOriginator;
> ^
>
> for the case
>
> union
> {
> struct
> {
> unsigned bStatusType;
> unsigned bOriginator;
> };
> struct
> {
> unsigned originator;
> unsigned memoryContentsChanged;
> unsigned interruptPending;
> unsigned bOriginator;
> };
> } USB_WORD;
>
> is that expected behaviour ?
Yes.
Marek
