Bug in IDE with "typedef"

As reported in this post earlier today, there is a bug in the IDE in which the compiler fails if an object created with a typedef is used in a function definition.

I won't repeat the code here as it's all in the original message.