Tool/software: TI C/C++ Compiler
A pair of inserts to list with zero items enters a state of infinite looping in vListInsert after two items are inserted (third insert loops).
I know the list size should be 10.
I have inverted the priorities per comments in the generated code (no change).
I have enabled stack checking and added a hook for overflow per comments in the generated code (which does not occur)
Is there a specific compiler version or optimization setting that is required?
Do I need to test the inserted items to avoid duplicates?