https://bugs.freedesktop.org/show_bug.cgi?id=54339
Bug #: 54339
Summary: BASIC: any use of "static" variables cause internal
error!
Classification: Unclassified
Product: LibreOffice
Version: 3.6.1.2 release
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Status Whiteboard: BSA
Severity: normal
Priority: medium
Component: BASIC
AssignedTo: [email protected]
ReportedBy: [email protected]
Problem description:
I have a very simple that references a static variable, has worked for over a
year in all previous versions. Now, attempting to access the static variable
generate "Internal error $(ARG1)"
Steps to reproduce:
Here's a trivial reduction of the bug. Run the following:
Sub bug
static myVar as Integer
if myVar = 0 then
msgbox("first time")
myVar = 1
end if
End Sub
Current behavior:
Internal error $(ARG1) upon the test "if myVar = 0"
Same result if you try to assign to myVar instead of query it - any attempt to
reference a static variable fails
Expected behavior:
myVar is found equal to 0 first time the sub is run.
Platform (if different from the browser):
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like
Gecko) Version/5.1.7 Safari/534.57.2
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs