------- Comment #3 from nevin at eviloverlord dot com 2008-06-18 19:06 -------
Expanding on my last comment: which lines in the following code should fail to
compile:
struct Squeeze
{
short s;
} __attribute__((aligned(1), packed));
void VerticallyChallenged(short*) {}
void VerticallyChallenged(short&) {}
int main()
{
Squeeze oj;
short& pit(oj.s);
short* ppit(&oj.s);
VerticallyChallenged(ppit); // okay
VerticallyChallenged(&oj.s); // okay
VerticallyChallenged(pit); // okay
VerticallyChallenged(oj.s); // cannot bind packed field oj.Squeeze::s
to short int&
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36566