[Bug c++/25927] New: Spurious offsetof warnings with private members

2006-01-23 Thread rcbilson at plg dot uwaterloo dot ca
Consider: #include iostream #include cstddef class xxx { friend int main(); void *q; public: void *r; }; int main() { std::cout offset of xxx::q is offsetof( xxx, q ) \n; std::cout offset of xxx::r is offsetof( xxx, r ) \n; return 0; } The class xxx is POD,

Re: [Bug c++/25927] New: Spurious offsetof warnings with private members

2006-01-23 Thread Gabriel Dos Reis
rcbilson at plg dot uwaterloo dot ca [EMAIL PROTECTED] writes: | Consider: | | #include iostream | #include cstddef | | class xxx { | friend int main(); | void *q; | public: | void *r; | }; | | int main() { | std::cout offset of xxx::q is offsetof( xxx, q ) \n; |