Created attachment 181876 [details]
An XLSM with a VBA macro showing infinite recursion in LibreOffice Basic
Running 'main' macro from the attachment produces this error:
> BASIC runtime error.
> Not enough stack memory.
It runs OK in Excel, showing a message box with "1".
The macro code there is this:
Option VBASupport 1
Set NotRecursive = New Collection
Set c = NotRecursive
The infinite recursion happens on 'NotRecursive.Add "Foo"', where LibreOffice Basic tries to call the function again.
Possibly this should only be fixed in VBASupport mode.
Version: 184.108.40.206.alpha0+ (x64) / LibreOffice Community
Build ID: bfca51d9035000e518e4938ceb145cb92cc17b1f
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Also reproduced in
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3;
Locale: es-ES (es_ES.UTF-8); UI-Language: en-US