Re: warning: ignoring packed attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

Thank you very much for your response.

As this warning is not seen with gcc 3.x tools, I was under impression that
its an issue with gcc. Thank you for the clarification.

Thanks
Swami




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux