M R Swami Reddy wrote: > Hello, > With below test case, a warning message displayed by gcc - 4.3.2: > test case: test.c: > === > struct A { > char B; > unsigned char & C; > } __attribute__((packed)); > > unsigned char D; > > A E = { 'F', D }; > === > > Command line: > >> gcc test.c -S > test.c:2: warning: ignoring packed attribute because of unpacked non-POD > field âunsigned char& A::Câ > > Could you please confirm, if the above warning is expected or its an > issue with gcc tool? It looks right to me: packed applies to POD-structs and -unions, and a struct that contains a reference is non-POD. ISO C++, Section 9, Classes, Para. 4. Andrew.