News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

type error

Started by dsula, April 15, 2006, 03:54:58 PM

Previous topic - Next topic

dsula

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

Pelle

Yes, it's a bug. I will look at it...

Pelle
/Pelle