For a still more complex syntax, compile with option '-exx' does not solve the problem, and worst, only 'gas' (32-bit) works, never 'gcc' (32-bit and 64-bit).
http://www.freebasic.net/forum/viewtopic.php?p=211700#p211700
http://www.freebasic.net/forum/viewtopic.php?p=211702#p211702

But after analysis, it seems that this behavior is a combination of this bug #854 with perhaps another impact of bug #844, because enclosing each line 'Swap ...' into a local scope block brings us back only to this bug #854.

 

Last edit: fxm (freebasic.net) 2017-05-21