[Bug middle-end/16670] struct { type:0; } passing bugs

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 22 10:26:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list