This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16670] struct { type:0; } passing bugs
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2004 10:26:53 -0000
- Subject: [Bug middle-end/16670] struct { type:0; } passing bugs
- References: <20040722101856.16670.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jakub at gcc dot gnu dot org 2004-07-22 10:26 -------
Argh, make the testcase for x86-64 instead:
extern void abort (void);
struct S { int:0; } a, b;
void foo (int c, int d, int e, int f, int g, int h, struct S x, struct S *y)
{
if (y != &b)
abort ();
}
int main (void)
{
foo (0, 1, 2, 3, 4, 5, a, &b);
return 0;
}
(there was a collision between the dummy arg names and structure variables).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16670