From: Erik P. <epe...@iv...> - 2005-08-08 16:47:07
|
On Mon, 8 Aug 2005, Vikram Tamboli wrote: > union > { > char controlword; > bit controlword_0; > bit controlword_1; > bit controlword_2; > bit controlword_3; > bit controlword_4; > bit controlword_5; > bit controlword_6; > bit controlword_7; > }cw; > > this is what I was doing and it was giving me error as > storage class not allowed here "bit" is not only a data type but also a storage class, like "data" and "xdata". It specifies a boolean data type that resides in the bit-addressable memory space. Since all of the fields of a struct or union need to be in the same memory space (and hence have the same storage class), it is not permitted to specify a storage class for the fields individually. Erik |