* Russ Allbery <[EMAIL PROTECTED]> [2006-09-07 15:19]:
> which passes a pointer to a struct testset into WCOREDUMP. You mean:
> WCOREDUMP(((struct testset *) ts)->status)
Ah yes, you're right.
> Whatever the problem is, though, it appears to be specific to AMD64. I
> can't replicate it on x86 at all, even with the latest unstable compiler.
> I'll look at this more from home this evening where I have an AMD64
> system.
I definitely see it on x86 too using the following testcase:
2292:[EMAIL PROTECTED]: ~/tmp/src] gcc-4.1 -c t.c
t.c: In function āfā:
t.c:9: error: assignment of read-only variable ā__vā
zsh: exit 1 gcc-4.1 -c t.c
2293:[EMAIL PROTECTED]: ~/tmp/src] cat t.c
struct rx_length_info
{
unsigned short tag;
};
void f(void)
{
const struct rx_length_info *length_info;
__typeof__ (*(&length_info->tag)) __v;
__v = *(&length_info->tag);
}
2294:[EMAIL PROTECTED]: ~/tmp/src] uname -a
Linux deprecation 2.6.17-1-686 #1 SMP Fri Jun 23 17:38:22 UTC 2006 i686
GNU/Linux
--
Martin Michlmayr
http://www.cyrius.com/