This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++.dg/ext/packed3.C
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 06 Dec 2005 16:05:36 +0100
- Subject: g++.dg/ext/packed3.C
This test contains three invocations of Ref(), but only two of them are
considered ill. What I'd like to get an explanation for is why the third
(middle) instance is considered correct. After all, the u member of
Packed is packed, and hence all the members of Unpacked in that context
are, too. Namely, even if the object referenced by p is properly
aligned, p.u isn't and hence p.u.i isn't either.
I'm asking this because for *-*-netware*, which uses packed structures
by default, this test fails with an error message like the ones expected
on the other two calls to Ref().
Thanks, Jan