https://bugs.winehq.org/show_bug.cgi?id=55502
Bug ID: 55502 Summary: Sub argument name clash with global const Product: Wine Version: 8.13 Hardware: arm OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com
Public Sub Show(value) WScript.Echo value End Sub
Show 42
' with this line commented 42 is printed ' with this line uncommented 1 is not printed Const Value = 1
https://bugs.winehq.org/show_bug.cgi?id=55502
francisdb francisdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Sub argument name clash |vbscript - Sub argument |with global const |name clash with global | |const
https://bugs.winehq.org/show_bug.cgi?id=55502
francisdb francisdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|vbscript - Sub argument |vbscript: Sub argument name |name clash with global |clash with global const |const |
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #1 from francisdb francisdb@gmail.com --- cscript .\test.vbs Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved.
42
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #2 from francisdb francisdb@gmail.com --- wine64 cscript test.vbs 1
https://bugs.winehq.org/show_bug.cgi?id=55502
francisdb francisdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|8.13 |8.14
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Thanks, confirming. Probably lookup order should be reversed somewhere.
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #4 from francisdb francisdb@gmail.com --- Thanks for the quick response!
https://bugs.winehq.org/show_bug.cgi?id=55502
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #5 from temp82@luukku.com --- wine 8.19 prints 1.
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #6 from francisdb francisdb@gmail.com --- According to https://gitlab.winehq.org/wine/wine/-/commits/master/dlls/vbscript?ref_type=... there have not been any updates to the vbscript code so I would be surprised to see this fixed.
https://bugs.winehq.org/show_bug.cgi?id=55502
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42@yahoo.com
--- Comment #7 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 75377 --> https://bugs.winehq.org/attachment.cgi?id=75377 check arguments before const declarations
This patch should fix the bug.
https://bugs.winehq.org/show_bug.cgi?id=55502
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #8 from Robert Wilhelm sloper42@yahoo.com --- confirming the bug.
https://bugs.winehq.org/show_bug.cgi?id=55502
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=55502
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #9 from Vijay Kamuju infyquest@gmail.com --- Please create a merge request and submit it.
https://bugs.winehq.org/show_bug.cgi?id=55502
--- Comment #10 from Robert Wilhelm sloper42@yahoo.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/4548
https://bugs.winehq.org/show_bug.cgi?id=55502
Jason Millard jsm174@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jsm174@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=55502
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |b13e7ba7a4953f4b3b14ade9358 | |d24f5610a2913 Resolution|--- |FIXED CC| |dark.shadow4@web.de
--- Comment #11 from Fabian Maurer dark.shadow4@web.de --- Should be fixed by https://gitlab.winehq.org/wine/wine/-/commit/b13e7ba7a4953f4b3b14ade9358d24f...
https://bugs.winehq.org/show_bug.cgi?id=55502
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc1.