root.fdx: error at definition
-
getting this error for every instance of a reg declaration in the latest build...
-
@Lindon - ok rebuilt again today - still getting this error at every line that declare reg variables...
Any one else getting this with the latest build?
-
Do you define a reg variable inside a function call?
-
@Christoph-Hart not that I know of...
-
@Lindon ops yep - found one - silly me.
-
Yeah I‘ve added this check after code reviewing another project so I guess that‘s a good one...
The problem is that this might introduce subtle bugs if not detected.
-
-
@LeeC yep - you shouldn't/can't use reg variables in functions (that are not inline at least) - this has always been the case , but Christoph just added a check so thats why you are seeing these errors - you need to change your reg variables to local or var as required.