Bug 98998 - Variant Parameter Fails on Non-Executed Branch
Summary: Variant Parameter Fails on Non-Executed Branch
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-31 10:51 UTC by DM
Modified: 2023-12-12 03:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DM 2016-03-31 10:51:48 UTC
Windows 10. The following fails, but works with the rewrite beneath. It seems highly undesirable that the code should fail in this way on a non-executed branch ("If 0 Then ...) but the other pass. Cheers, david

THIS FAILS -

Sub Main()
dim a
a=12
Msgbox f(a)
End Sub

Function f(v)
Dim i
If 0 Then i=v.Count
End Function

BUT THIS WORKS -

[...]
Function f(w)
Dim i,v:v=w
If 0 Then i=v.Count
End Function
Comment 1 Bernard Marcelly 2016-04-08 14:14:36 UTC
This bug is inherited from OpenOffice.org

See OpenOffice Issue 70616
https://bz.apache.org/ooo/show_bug.cgi?id=70616
It contains other examples.
Comment 2 QA Administrators 2017-05-22 13:22:14 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-12-03 15:00:03 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-12-03 04:46:02 UTC Comment hidden (obsolete)
Comment 5 Leslie 2021-12-11 20:46:17 UTC
Confirmed on latest release:   

Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 6 QA Administrators 2023-12-12 03:14:00 UTC
Dear DM,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug