[Addressed] [since Aug 19] More HD crashing woes

Bugs that have been investigated and resolved somehow.

Moderator: Developers

Re: [since Aug 19] More HD crashing woes

Postby _mental_ » Thu Sep 14, 2017 12:19 pm

The problem is ZScript compiler does not add implicit scope for if statement without curly brackets.
So expression after if condition belongs to the current scope allowing errors like I found.
Joined: 07 Aug 2011

Re: [since Aug 19] More HD crashing woes

Postby _mental_ » Thu Nov 02, 2017 10:16 am

I've added some precautions against 'scope leaking' variables in 57de598.
So they no longer cause an undefined behavior. Referencing such variable outside of its scope is a compilation error.

Please post a new report if there will some crashes with the latest code.
Joined: 07 Aug 2011


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest