sway icon indicating copy to clipboard operation
sway copied to clipboard

ICE: Internal compiler error: Block while has a misplaced terminator.

Open Braqzen opened this issue 1 year ago • 1 comments

Forc: latest (0.60.0)

Repro: forc build

contract;

abi TestContract {
    fn test_method();
}

impl TestContract for Contract {
    fn test_method() {
        while (true && true) {}
    }
}

Context: the issue is having more than one &&. I've reduced this from a massive codebase. I have not attempted to try different combinations (logical or otherwise)

Braqzen avatar Jul 01 '24 20:07 Braqzen

cc @IGI-111 this is urgent for a known project integration

Braqzen avatar Jul 01 '24 20:07 Braqzen

This issue is fixed with #6146 and the code compiles with Forc 0.61.1.

ironcev avatar Jul 05 '24 10:07 ironcev