solved: returning compound litteral struct

I have this declaration:

struct retVal {
  double c;
  double x;
};//retVal

and a number of functions like this:

struct retVal faktor(){
  retVal f;
  EXEC(tokenizer);
  switch(op){
  //some cases here
  default://error case
    f.x = NAN;
    f.c = NAN;
  }//()
  return f;
}//faktor()

What i want do is something like this. It should be possible in C99:

struct retVal faktor(){
  retVal f;
  EXEC(tokenizer);
  switch(op){
  //some cases here
  default://error case
    return (struct retVal) {NAN, NAN};
  }//()
  return f;
}//faktor()

But the compiler doesn't buy it. Any ideas?

Edit: it worked, I had some other errors and for some reason it pointed here.