NO

Author Topic: type error  (Read 2492 times)

dsula

  • Guest
type error
« on: April 15, 2006, 03:54:58 PM »
Hi,

The following code won't compile, although I believe it is correct. (I'm not a C expert, so I might be wrong!)
Compiler complains with: Type error in argument 1

Thanks.
DS



struct x_struct {
   int a;
};
void f(struct x_struct (*x)[])
{
}
int main(void)
{
   struct x_struct (*x)[];

   f(x);

   return 1;
}

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
type error
« Reply #1 on: April 17, 2006, 11:00:42 PM »
Yes, it's a bug. I will look at it...

Pelle
/Pelle