public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26670]  New: attribute((packed)) sometimes not ignored for non-PODs
@ 2006-03-13 23:11 debian-gcc at lists dot debian dot org
  2006-03-13 23:15 ` [Bug c++/26670] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-03-13 23:11 UTC (permalink / raw)
  To: gcc-bugs

[forwarded from http://bugs.debian.org/356548]

Under some circumstances, non-PODs are not properly stripped of their
packedness:

struct nonpod {
    nonpod();
};

struct nonpod_pack {
    nonpod n;
} __attribute__ ((packed));

struct nonpod_pack2 {
    nonpod_pack p;
} __attribute__ ((packed));

gives

foo.cc:6: warning: ignoring packed attribute on unpacked non-POD field 'nonpod
nonpod_pack::n'

nonpod_pack2::p should also have the packedness ignored, since it is a non-POD.


-- 
           Summary: attribute((packed)) sometimes not ignored for non-PODs
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26670


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-08-30 15:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-13 23:11 [Bug c++/26670] New: attribute((packed)) sometimes not ignored for non-PODs debian-gcc at lists dot debian dot org
2006-03-13 23:15 ` [Bug c++/26670] " pinskia at gcc dot gnu dot org
2006-03-13 23:53 ` debian-gcc at lists dot debian dot org
2006-03-16  5:35 ` pinskia at gcc dot gnu dot org
2006-03-16  5:36 ` pinskia at gcc dot gnu dot org
2006-07-05 20:38 ` jason at gcc dot gnu dot org
2006-07-06  3:48 ` jason at gcc dot gnu dot org
2006-07-06  3:52 ` jason at gcc dot gnu dot org
2006-08-28  8:31 ` jason at gcc dot gnu dot org
2006-08-29  6:55 ` jason at gcc dot gnu dot org
2006-08-29  7:11 ` jason at gcc dot gnu dot org
2006-08-30  3:54 ` pinskia at gcc dot gnu dot org
2006-08-30  5:26 ` debian-gcc at lists dot debian dot org
2006-08-30 15:51 ` jason at gcc dot gnu dot org
2006-08-30 15:52 ` jason at gcc dot gnu dot org
2006-08-30 15:53 ` jason at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).