This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26670] attribute((packed)) sometimes not ignored for non-PODs



------- Comment #2 from debian-gcc at lists dot debian dot org  2006-03-13 23:53 -------
It's not just a missing warning, it also changes behavior:

int& foo(nonpod_pack& n) {
    return n.n.i;               // this passes
}

int& foo(nonpod_pack2& p) {
    return p.p.n.i;             // this barfs
}


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]