Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#495 Parser error : arrays of structs as function argument

closed-fixed
nobody
None
5
2012-11-12
2012-10-23
Kalith
No

The following code generates a parser error with the CVS version (from 10/17/2012) :

; Initialize some data
str_template={value:1.0}
str_array=replicate(str_template,10)
str={data:str_array}

tmp=cos(5.0) ; is ok
tmp=cos(str_template.value) ; is ok
tmp=cos(str_array(0).value) ; is ok
tmp=cos(str.data(0).value) ; paser error : "Parser syntax error: unexpected token: COS"

; But note that the following is ok and prints the correct value
print,str.data(0).value

end

Discussion

  • Marc Schellens
    Marc Schellens
    2012-11-12

    Thanks for reporting. This was a crucial bug.

     
  • Marc Schellens
    Marc Schellens
    2012-11-12

    • status: open --> closed-fixed