This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]