(05-17-2022, 11:22 AM)TarotRedhand Wrote: Bug Report.
At the top of my code I have the '$DYNAMIC switch.
I have a sub that takes an array as a parameter.
In that sub I REDIM that array.
The code compiles fine.
When run the compiled code I receive an Unhandled Error message for a Duplicate Definition on the line where I REDIM the array. It asks if I want to continue Yes/No. This shouldn't happen. It is a bug with the current version of QB64. It didn't happen in QB4.5.
TR
Did you originally use REDIM for the array and are you REDIM with same type and dimensions?
Wait...
I don't use '$DYNAMIC switch because STATIC arrays have their place too, often in same code app.
Does '$DYNAMIC switch apply to library code? Does it go in .BI too? That's when the problem popped up, when you were trying Matrix library, I recall seeing.
Maybe with the switch you shouldn't use REDIM?
b = b + ...