YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Building Projects: [YYC] Loops with "<= (expression)" conditions fail to compile #8599

Closed gm-bug-reporter[bot] closed 3 hours ago

gm-bug-reporter[bot] commented 1 day ago

Description

YYC fails to compile for loops with conditionals as their second item and <= (I've left comments with "@YOYO STAFF" on them explaining where this was found in the code)

Steps To Reproduce

YYC using VS Community 2022 Compile project - should show 0 warnings and 2 errors

Which version of GameMaker are you reporting this issue for?

IDE v2024.8.1.171 Runtime v2024.8.1.218

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

Which platform(s) are you seeing the problem on?

Windows

fcff7b75-bbc8-41a7-96b6-a314b1d6113c

YYDan commented 1 day ago

Confirmed and made a smaller sample - https://api.gamemaker.io/api/github/downloads/5d7a9e2f-b83b-4fb1-856b-87a91e667be6

Note that it's not the <= alone that causes this - it's the combination of the <= with the "( i > 0)" test that's part of the expression. If you change the code to be "<= i" instead, then the sample works correctly.

rwkay commented 3 hours ago

Fixed in 2024.11 - Low impact addition of some operator overloads in the YYRValue class