https://bugs.winehq.org/show_bug.cgi?id=54484
Bug ID: 54484 Summary: Comma-separated variable declaration lists do no handle dependent initializers within the same list Product: vkd3d Version: 1.6 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
Created attachment 74035 --> https://bugs.winehq.org/attachment.cgi?id=74035 test
See attached test. Currently it produces an error: E5005: Identifier "i" is not declared.
This happens because earlier declared variables are not declared within the context, so when occurred in following initializers they are treated as NEW_IDENTIFIER, instead of VAR_IDENTIFIER. My understanding is that declarations are added to the context after whole list is processed, and that probably should change.
https://bugs.winehq.org/show_bug.cgi?id=54484
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Comma-separated variable |Comma-separated variable |declaration lists do no |declaration lists do not |handle dependent |handle dependent |initializers within the |initializers within the |same list |same list
https://bugs.winehq.org/show_bug.cgi?id=54484
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |49810
https://bugs.winehq.org/show_bug.cgi?id=54484
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |54926
https://bugs.winehq.org/show_bug.cgi?id=54484
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |62c891b7964e7c63146fb87af9a | |96f7efee1582c Status|NEW |RESOLVED
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- This is now fixed, https://source.winehq.org/git/vkd3d.git/commit/62c891b7964e7c63146fb87af9a96...
https://bugs.winehq.org/show_bug.cgi?id=54484
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Closing bugs fixed in 1.9.