Pelles C forum

Pelles C => Bug reports => Topic started by: dsula on April 15, 2006, 03:54:58 PM

Title: type error
Post by: dsula 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;
}
Title: type error
Post by: Pelle on April 17, 2006, 11:00:42 PM
Yes, it's a bug. I will look at it...

Pelle