https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89519

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matt Whitlock from comment #0)
> test.cpp:9:4: warning: ignoring packed attribute because of unpacked non-POD
> field 'S P::s'

I think this diagnostic would be improved if it said "ignoring packed attribute
because of unpacked field 'S P::s' which is not POD for the purposes of layout"

That would refer to the term from the ABI spec that is relevant to class
layout, which is not the same as the property tested by std::is_pod.

(In reply to Matt Whitlock from comment #5)
> For what it's worth, having two conflicting definitions of "POD" is
> confusing.

The std::is_pod trait is deprecated in the C++2a draft, and the clauses
describing the core language no longer use the term POD at all.

Reply via email to